mirror of
https://github.com/futurepress/epub.js.git
synced 2025-10-04 15:09:16 +02:00
Fix an issue with opening local files on iOS
iOS returns 0 status when requesting a local file.
This commit is contained in:
parent
b7643d3a1d
commit
6ac6e12d32
1 changed files with 1 additions and 1 deletions
|
@ -80,7 +80,7 @@ function request(url, type, withCredentials, headers) {
|
||||||
responseXML = this.responseXML;
|
responseXML = this.responseXML;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.status === 200 || responseXML ) { //-- Firefox is reporting 0 for blob urls
|
if (this.status === 200 || this.status === 0 || responseXML) { //-- Firefox is reporting 0 for blob urls
|
||||||
var r;
|
var r;
|
||||||
|
|
||||||
if (!this.response && !responseXML) {
|
if (!this.response && !responseXML) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue