update misc.js

This commit is contained in:
tom5079
2022-01-20 15:41:11 +09:00
parent 2ac8bbf36d
commit 42a06296b7
2 changed files with 3 additions and 2 deletions

View File

@@ -64,7 +64,8 @@ function do_search(query) {
}
function replace_jpg_tn(tn) {
if (!tn.startsWith('https')) tn = `https:${tn}`;
if (tn.endsWith('jpg')) tn = tn.replace('bigtn', 'webpbigtn').replace(/jpg$/, 'webp');
return `https:${tn}`
return tn;
}

View File

@@ -1 +1 @@
0.0.7-DEV07
0.0.7-DEV08