mirror of
https://github.com/futurepress/epub.js.git
synced 2025-10-03 14:59:18 +02:00
Load fail error, fix scrolled-doc layout
This commit is contained in:
parent
bef15e3af2
commit
0889e63a29
9 changed files with 130 additions and 61 deletions
|
@ -90,6 +90,16 @@ function request(url, type, withCredentials, headers) {
|
|||
return deferred.promise;
|
||||
}
|
||||
|
||||
if (this.status === 403) {
|
||||
deferred.reject({
|
||||
status: this.status,
|
||||
response: this.response,
|
||||
message : "Forbidden",
|
||||
stack : new Error().stack
|
||||
});
|
||||
return deferred.promise;
|
||||
}
|
||||
|
||||
if((this.responseType == '' || this.responseType == 'document')
|
||||
&& this.responseXML){
|
||||
r = this.responseXML;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue