diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2015-05-28 20:45:14 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-05-28 20:45:14 +0200 |
commit | b95ebb76e52c58b7789886c9d4b61442e496f138 (patch) | |
tree | 69517ca8d956e174f58b1808107aee59b6552a6b /apps | |
parent | 863139c1e24719df4c3bbbefabb5173bc93672d9 (diff) | |
parent | 2daef7c7dcacc4b0bf6fc650d0d3ef330db11eee (diff) | |
download | nextcloud-server-b95ebb76e52c58b7789886c9d4b61442e496f138.tar.gz nextcloud-server-b95ebb76e52c58b7789886c9d4b61442e496f138.zip |
Merge pull request #16607 from owncloud/ie9-textpreviewfallback
Fallback to picture preview for IE <= 9
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_sharing/js/public.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/js/public.js b/apps/files_sharing/js/public.js index c5934a4f609..17bee7b3b68 100644 --- a/apps/files_sharing/js/public.js +++ b/apps/files_sharing/js/public.js @@ -110,7 +110,7 @@ OCA.Sharing.PublicApp = { (maxGifSize === -1 || fileSize <= (maxGifSize * 1024 * 1024))) { img.attr('src', $('#downloadURL').val()); img.appendTo('#imgframe'); - } else if (mimetype.substr(0, mimetype.indexOf('/')) === 'text') { + } else if (mimetype.substr(0, mimetype.indexOf('/')) === 'text' && window.btoa) { // Undocumented Url to public WebDAV endpoint var url = parent.location.protocol + '//' + location.host + OC.linkTo('', 'public.php/webdav'); $.ajax({ |