From: Alexander Ebert Date: Mon, 24 Apr 2017 14:35:30 +0000 (+0200) Subject: Work-around for Safari w/ disabled cache X-Git-Tag: 3.0.5~37 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2f638c835edf762ae6aef784f61e53f173fbf853;p=GitHub%2FWoltLab%2FWCF.git Work-around for Safari w/ disabled cache --- diff --git a/wcfsetup/install/files/js/WCF.ImageViewer.js b/wcfsetup/install/files/js/WCF.ImageViewer.js index 6aace2c537..165f6f6567 100644 --- a/wcfsetup/install/files/js/WCF.ImageViewer.js +++ b/wcfsetup/install/files/js/WCF.ImageViewer.js @@ -800,8 +800,8 @@ $.widget('ui.wcfImageViewer', { var $img = new Image(); $img.src = imageData.image.url; - imageData.image.height = $img.height; - imageData.image.width = $img.width; + imageData.image.height = $img.height || $image[0].naturalHeight; + imageData.image.width = $img.width || $image[0].naturalWidth; } else { $image.css({