From b076cd1d6a6e50dd004075d4af09f40031a3e0b5 Mon Sep 17 00:00:00 2001 From: Rob Wu Date: Wed, 10 Jul 2013 23:34:10 +0200 Subject: [PATCH] Always declare window.URL even if undefined Otherwise it breaks feature detection, "ReferenceError: Can't find variabl: URL" in Safari 5.1 --- web/compatibility.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/compatibility.js b/web/compatibility.js index 0d12c64a9..1b65872dd 100644 --- a/web/compatibility.js +++ b/web/compatibility.js @@ -94,7 +94,7 @@ if (typeof PDFJS === 'undefined') { // URL = URL || webkitURL (function normalizeURLObject() { - if (!window.URL && window.webkitURL) { + if (!window.URL) { window.URL = window.webkitURL; } })();