fix: 1.修复了图片插件可用性判断的问题。2.修复了code插件样式错误的问题
This commit is contained in:
1 parent
b3c6dad1b1
commit
de2e53cbcf
4 files changed
+33
-11
No files matched your search
+7
-4
@@ -106,13 +106,16 @@ export default function init() {
|
||||
if (vDirs.length === 0 && vFiles.length === 0) {
|
||||
return false;
|
||||
}
|
||||
miao: for (let vf of vFiles)
|
||||
for (let end of [".xbm", ".tif", "pjp", ".svgz", "jpg", "jpeg", "ico", "tiff", ".gif", "svg", ".jfif", ".webp", ".png", ".bmp", "pjpeg", ".avif"]) {
|
||||
if( vDirs.length ) {
|
||||
return true
|
||||
}
|
||||
for (let vf of vFiles)
|
||||
for (let end of ["xbm", "tif", "pjp", "svgz", "jpg", "jpeg", "ico", "tiff", "gif", "svg", "jfif", "webp", "png", ".bmp", "pjpeg", "avif"]) {
|
||||
if (vf.name.endsWith(end)) {
|
||||
continue miao;
|
||||
return true
|
||||
}
|
||||
}
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user