From 1f19587f05c28c37a08063bcb122298d05b74fd6 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak <alec@alec.pl> Date: Thu, 23 May 2013 09:43:58 -0400 Subject: [PATCH] Fix browser warnings on PDF plugin detection (#1489118) --- program/js/app.js | 9 --------- 1 files changed, 0 insertions(+), 9 deletions(-) diff --git a/program/js/app.js b/program/js/app.js index 1f0b954..49d0756 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -6717,15 +6717,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; }; -- Gitblit v1.9.1