1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-20 15:18:08 +02:00

Merge pull request #4103 from yurydelendik/issue3977

Introduces disableObjectCreateURL
This commit is contained in:
Brendan Dahl 2014-01-16 10:51:22 -08:00
commit 3b829f4a45
4 changed files with 23 additions and 7 deletions

View file

@ -442,6 +442,14 @@ if (typeof PDFJS === 'undefined') {
}
})();
// Checks if possible to use URL.createObjectURL()
(function checkOnBlobSupport() {
// sometimes IE loosing the data created with createObjectURL(), see #3977
if (navigator.userAgent.indexOf('Trident') >= 0) {
PDFJS.disableCreateObjectURL = true;
}
})();
// Checks if navigator.language is supported
(function checkNavigatorLanguage() {
if ('language' in navigator)