From 1f19587f05c28c37a08063bcb122298d05b74fd6 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Thu, 23 May 2013 15:43:58 +0200 Subject: Fix browser warnings on PDF plugin detection (#1489118) --- CHANGELOG | 1 + program/js/app.js | 9 --------- program/resources/blank.pdf | Bin 921 -> 0 bytes 3 files changed, 1 insertion(+), 9 deletions(-) delete mode 100644 program/resources/blank.pdf diff --git a/CHANGELOG b/CHANGELOG index 6e16d06d1..f30df677f 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,6 +1,7 @@ CHANGELOG Roundcube Webmail =========================== +- Fix browser warnings on PDF plugin detection (#1489118) - Fix fatal error when parsing UUencoded messages (#1489119) - Change Reply-All button label/title when mailing list is detected (#1488938) - Fix SMTP connection using IPv6 address in smtp_server option (#1489024) diff --git a/program/js/app.js b/program/js/app.js index 1f0b95410..49d0756a9 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -6717,15 +6717,6 @@ function rcube_webmail() return 1; } - // this will detect any pdf plugin including PDF.js in Firefox - var obj = document.createElement('OBJECT'); - obj.onload = function() { rcmail.env.browser_capabilities.pdf = 1; }; - obj.onerror = function() { rcmail.env.browser_capabilities.pdf = 0; }; - obj.style.display = 'none'; - obj.type = 'application/pdf'; - obj.data = 'program/resources/blank.pdf'; - document.body.appendChild(obj); - return 0; }; diff --git a/program/resources/blank.pdf b/program/resources/blank.pdf deleted file mode 100644 index 7bf83e390..000000000 Binary files a/program/resources/blank.pdf and /dev/null differ -- cgit v1.2.3