diff options
author | Aleksander Machniak <alec@alec.pl> | 2013-05-23 15:43:58 +0200 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2013-05-23 15:43:58 +0200 |
commit | 1f19587f05c28c37a08063bcb122298d05b74fd6 (patch) | |
tree | fa5e21d4d7d33758f1b77e7f2757fa43ffb6d467 /program/js/app.js | |
parent | bbd636740eecefcb596ce2ad51307263acbb791b (diff) |
Fix browser warnings on PDF plugin detection (#1489118)
Diffstat (limited to 'program/js/app.js')
-rw-r--r-- | 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 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; }; |