Merge pull request #16607 from owncloud/ie9-textpreviewfallback

Fallback to picture preview for IE <= 9
This commit is contained in:
Thomas Müller 2015-05-28 20:45:14 +02:00
commit b95ebb76e5
1 changed files with 1 additions and 1 deletions

View File

@ -110,7 +110,7 @@ OCA.Sharing.PublicApp = {
(maxGifSize === -1 || fileSize <= (maxGifSize * 1024 * 1024))) { (maxGifSize === -1 || fileSize <= (maxGifSize * 1024 * 1024))) {
img.attr('src', $('#downloadURL').val()); img.attr('src', $('#downloadURL').val());
img.appendTo('#imgframe'); 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 // Undocumented Url to public WebDAV endpoint
var url = parent.location.protocol + '//' + location.host + OC.linkTo('', 'public.php/webdav'); var url = parent.location.protocol + '//' + location.host + OC.linkTo('', 'public.php/webdav');
$.ajax({ $.ajax({