Always declare window.URL even if undefined
Otherwise it breaks feature detection, "ReferenceError: Can't find variabl: URL" in Safari 5.1
This commit is contained in:
parent
9ac2584852
commit
b076cd1d6a
1 changed files with 1 additions and 1 deletions
|
@ -94,7 +94,7 @@ if (typeof PDFJS === 'undefined') {
|
||||||
|
|
||||||
// URL = URL || webkitURL
|
// URL = URL || webkitURL
|
||||||
(function normalizeURLObject() {
|
(function normalizeURLObject() {
|
||||||
if (!window.URL && window.webkitURL) {
|
if (!window.URL) {
|
||||||
window.URL = window.webkitURL;
|
window.URL = window.webkitURL;
|
||||||
}
|
}
|
||||||
})();
|
})();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue