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:
commit
3b829f4a45
4 changed files with 23 additions and 7 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue