Picviewer CE+

Powerful picture viewing tool online, which can popup/scale/rotate/batch save pictures automatically

< Feedback on Picviewer CE+

Question/comment

§
Posted: 2020-10-21

please replace string:
var result,hasBg=function(node){var nodeStyle=getComputedStyle(node);return node&&nodeStyle.backgroundImage&&/^url/.test(nodeStyle.backgroundImage)&&nodeStyle.backgroundImage.indexOf("about:blank")==-1&&nodeStyle.width.replace("px","")>prefs.floatBar.minSizeLimit.w&&nodeStyle.height.replace("px","")>prefs.floatBar.minSizeLimit.h;}; to sting:
var result,hasBg=function(node){if (node.constructor && node.constructor.name === 'HTMLElement'){ var nodeStyle=getComputedStyle(node);return node&&nodeStyle.backgroundImage&&/^url/.test(nodeStyle.backgroundImage)&&nodeStyle.backgroundImage.indexOf("about:blank")==-1&&nodeStyle.width.replace("px","")>prefs.floatBar.minSizeLimit.w&&nodeStyle.height.replace("px","")>prefs.floatBar.minSizeLimit.h;};}

because in old variant it sometime log to console:
Failed to execute 'getComputedStyle' on 'Window': parameter 1 is not of type 'Element or something like this

Post reply

Sign in to post a reply.