mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-09 09:45:42 +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
|
// IE9/10 text/html data URI
|
||||||
(function checkDocumentDocumentModeCompatibility() {
|
(function checkDataURICompatibility() {
|
||||||
if (!('documentMode' in document) || document.documentMode !== 9)
|
if (!('documentMode' in document) ||
|
||||||
|
document.documentMode !== 9 && document.documentMode !== 10)
|
||||||
return;
|
return;
|
||||||
// overriding the src property
|
// overriding the src property
|
||||||
var originalSrcDescriptor = Object.getOwnPropertyDescriptor(
|
var originalSrcDescriptor = Object.getOwnPropertyDescriptor(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue