From ed8fdc75d89c6f4bbb42b76c74eb735b257faaa3 Mon Sep 17 00:00:00 2001 From: tophf Date: Thu, 12 Aug 2021 15:46:53 +0300 Subject: [PATCH] ...and now it's readable --- popup/search.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/popup/search.js b/popup/search.js index 383b8b6e..c45977f6 100644 --- a/popup/search.js +++ b/popup/search.js @@ -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, {