mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +02:00
Simulate support of data URIs for IE10
This commit is contained in:
parent
e17d828b64
commit
96c2f5c6ae
1 changed files with 4 additions and 3 deletions
|
@ -244,9 +244,10 @@
|
|||
};
|
||||
})();
|
||||
|
||||
// IE9 text/html data URI
|
||||
(function checkDocumentDocumentModeCompatibility() {
|
||||
if (!('documentMode' in document) || document.documentMode !== 9)
|
||||
// IE9/10 text/html data URI
|
||||
(function checkDataURICompatibility() {
|
||||
if (!('documentMode' in document) ||
|
||||
document.documentMode !== 9 && document.documentMode !== 10)
|
||||
return;
|
||||
// overriding the src property
|
||||
var originalSrcDescriptor = Object.getOwnPropertyDescriptor(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue