Weow tenary :D

This commit is contained in:
Gusted 2021-08-12 14:42:32 +02:00
parent 98b6310b6f
commit dc440646a6
No known key found for this signature in database
GPG Key ID: FD821B732837125F

View File

@ -293,15 +293,7 @@
// screenshot // screenshot
const elShot = $('.search-result-screenshot-default', entry); const elShot = $('.search-result-screenshot-default', entry);
if (isUsw) { if (isUsw) {
if (/^https?:/i.test(shotName)) { elShot.src = /^https?:/i.test(shotName) ? imgType !== '.jpg' ? shotName.replace(/\.jpg$/, imgType) : shotName : BLANK_PIXEL;
if (imgType !== '.jpg') {
elShot.src = shotName.replace(/\.jpg$/, imgType);
} else {
elShot.src = shotName;
}
} else {
elShot.src = BLANK_PIXEL;
}
} else { } else {
const auto = URLS.uso + `auto_style_screenshots/${id}${USO_AUTO_PIC_SUFFIX}`; const auto = URLS.uso + `auto_style_screenshots/${id}${USO_AUTO_PIC_SUFFIX}`;
Object.assign(elShot, { Object.assign(elShot, {