1
0
Fork 0
mirror of https://github.com/futurepress/epub.js.git synced 2025-10-04 15:09:16 +02:00

Merge pull request #808 from jianwwpro/master

If type is epub , request xhr with settings requestCredentials
This commit is contained in:
Fred Chasen 2018-08-14 17:07:41 -07:00 committed by GitHub
commit 8ba1270a7d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -233,7 +233,7 @@ class Book {
} else if (type === INPUT_TYPE.EPUB) {
this.archived = true;
this.url = new Url("/", "");
opening = this.request(input, "binary")
opening = this.request(input, "binary",this.settings.requestCredentials)
.then(this.openEpub.bind(this));
} else if(type == INPUT_TYPE.OPF) {
this.url = new Url(input);