diff options
author | Olivier Paroz <oparoz@users.noreply.github.com> | 2015-10-13 15:31:37 +0300 |
---|---|---|
committer | Olivier Paroz <oparoz@users.noreply.github.com> | 2015-10-13 15:31:37 +0300 |
commit | 7b4e69dee5195a777de9aa08183655fed267f4a8 (patch) | |
tree | 5a163c811d443d4e3edf7a0b0973816ee7aad0b7 /js | |
parent | cbd13df9bc3ce14491a8f64bb6eae76918de39ef (diff) | |
parent | de642bc21f90a8fc4f4a1f7e35025970c3e889b0 (diff) |
Merge pull request #409 from owncloud/force-chrome-to-load-images-after-onerrorv8.2RC2
Force Chrome to reload images after image.onerror
Diffstat (limited to 'js')
-rw-r--r-- | js/thumbnail.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/js/thumbnail.js b/js/thumbnail.js index 0353d6e5..92398722 100644 --- a/js/thumbnail.js +++ b/js/thumbnail.js @@ -132,7 +132,8 @@ function Thumbnail (fileId, square) { }; thumb.image.onerror = function () { thumb.valid = false; - thumb.image.src = Thumbnails._getMimeIcon(preview.mimetype); + var icon = Thumbnails._getMimeIcon(preview.mimetype); + setTimeout(function(){ thumb.image.src = icon; }, 0); }; if (thumb.status === 200) { |