1
0
Fork 0
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:
Fred Chasen 2016-09-23 14:38:59 +02:00
parent bef15e3af2
commit 0889e63a29
9 changed files with 130 additions and 61 deletions

View file

@ -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;