Skip to content

Commit 9758a22

Browse files
committed
chore(Picviewer CE+): Auto-generate dist.user.js
1 parent e25b2af commit 9758a22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Picviewer CE+/dist.user.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25290,7 +25290,7 @@ ImgOps | https://imgops.com/#b#`;
2529025290
let bgReg = /.*url\(\s*["']?([^ad\s'"#].+?)["']?\s*\)([^'"]|$)/i;
2529125291
let bgRegLong = /^\s*url\(\s*["']?([^ad\s'"#].+?)["']?\s*\)([^'"]|$)/i;
2529225292
let result, targetBg, hasBg = node => {
25293-
if(node.nodeName.toUpperCase() == "HTML" || node.nodeName == "#document" || node.nodeType != 1){
25293+
if(/^(html|body|#document)$/i.test(node.nodeName) || node.nodeType != 1){
2529425294
return false;
2529525295
}
2529625296
if (node.clientWidth <= prefs.floatBar.minSizeLimit.w || node.clientHeight <= prefs.floatBar.minSizeLimit.h) {

0 commit comments

Comments
 (0)