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:44:39 +0200 |
commit | c79a7b734edf120794ca3bb249ec0ba7251c5dd4 (patch) | |
tree | 71cd528dd317f06eedc8662b2a0dbbe0d6e5c911 | |
parent | 9312ba2cb6c31774d7b5af40f48d6ec80e27d6d9 (diff) |
Fix browser warnings on PDF plugin detection (#1489118)
-rw-r--r-- | CHANGELOG | 1 | ||||
-rw-r--r-- | program/js/app.js | 9 | ||||
-rw-r--r-- | program/resources/blank.pdf | bin | 921 -> 0 bytes |
3 files changed, 1 insertions, 9 deletions
@@ -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 4017fa356..b6ffb5e51 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -6809,15 +6809,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 Binary files differdeleted file mode 100644 index 7bf83e390..000000000 --- a/program/resources/blank.pdf +++ /dev/null |