From c79a7b734edf120794ca3bb249ec0ba7251c5dd4 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak <alec@alec.pl> Date: Thu, 23 May 2013 09:44:39 -0400 Subject: [PATCH] Fix browser warnings on PDF plugin detection (#1489118) --- CHANGELOG | 1 + /dev/null | 0 program/js/app.js | 9 --------- 3 files changed, 1 insertions(+), 9 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 7f465d8..4487978 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) RELEASE 0.9.1 diff --git a/program/js/app.js b/program/js/app.js index 4017fa3..b6ffb5e 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -6809,15 +6809,6 @@ 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 7bf83e3..0000000 --- a/program/resources/blank.pdf +++ /dev/null Binary files differ -- Gitblit v1.9.1