1
0
Fork 0
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:
Anton Korolkov 2018-05-14 21:43:27 +03:00
parent b7643d3a1d
commit 6ac6e12d32

View file

@ -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) {