...and now it's readable

This commit is contained in:
tophf 2021-08-12 15:46:53 +03:00 committed by GitHub
parent dc440646a6
commit ed8fdc75d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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