Skip to content

Commit 4b2bf49

Browse files
committed
Update Picviewer CE+.user.js
1 parent 5591e64 commit 4b2bf49

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

Picviewer CE+/Picviewer CE+.user.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// @description Powerful picture viewing tool online, which can popup/scale/rotate/batch save pictures automatically
77
// @description:zh-CN 在线看图工具,支持图片翻转、旋转、缩放、弹出大图、批量保存
88
// @description:zh-TW 線上看圖工具,支援圖片翻轉、旋轉、縮放、彈出大圖、批量儲存
9-
// @version 2022.1.24.3
9+
// @version 2022.1.25.1
1010
// @created 2011-6-15
1111
// @namespace https://github.com/hoothin/UserScripts
1212
// @homepage http://hoothin.com
@@ -3823,7 +3823,8 @@ ImgOps | https://imgops.com/#b#`;
38233823
this.img.style.display='none';
38243824
this.eleMaps['img_broken'].style.display='inline-block';
38253825
}else{
3826-
var srcs=dataset(relatedThumb, 'srcs').split(",");
3826+
var srcs=dataset(relatedThumb, 'srcs');
3827+
if(srcs && srcs.length>0)srcs=srcs.split(",");
38273828
var self=this;
38283829
this.img.onload=function(){
38293830
var imgNaturalSize={
@@ -3834,7 +3835,7 @@ ImgOps | https://imgops.com/#b#`;
38343835
self.imgNaturalSize=imgNaturalSize;
38353836
self.fitToScreen();
38363837
}
3837-
if(srcs){
3838+
if(srcs && srcs.length>0){
38383839
var src=srcs.shift();
38393840
dataset(relatedThumb, 'srcs',srcs.join(","));
38403841
if(src){

0 commit comments

Comments
 (0)