diff options
Diffstat (limited to 'program')
-rw-r--r-- | program/js/app.js | 9 | ||||
-rw-r--r-- | program/resources/blank.pdf | bin | 0 -> 921 bytes |
2 files changed, 9 insertions, 0 deletions
diff --git a/program/js/app.js b/program/js/app.js index 5d7e28640..58810c24a 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -6721,6 +6721,15 @@ 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 differnew file mode 100644 index 000000000..7bf83e390 --- /dev/null +++ b/program/resources/blank.pdf |