From dc440646a609f1a0092d2c804fdd33419ac15c5c Mon Sep 17 00:00:00 2001 From: Gusted Date: Thu, 12 Aug 2021 14:42:32 +0200 Subject: [PATCH] Weow tenary :D --- popup/search.js | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/popup/search.js b/popup/search.js index 232a36c1..383b8b6e 100644 --- a/popup/search.js +++ b/popup/search.js @@ -293,15 +293,7 @@ // screenshot const elShot = $('.search-result-screenshot-default', entry); if (isUsw) { - if (/^https?:/i.test(shotName)) { - if (imgType !== '.jpg') { - elShot.src = shotName.replace(/\.jpg$/, imgType); - } else { - elShot.src = shotName; - } - } else { - elShot.src = BLANK_PIXEL; - } + elShot.src = /^https?:/i.test(shotName) ? imgType !== '.jpg' ? shotName.replace(/\.jpg$/, imgType) : shotName : BLANK_PIXEL; } else { const auto = URLS.uso + `auto_style_screenshots/${id}${USO_AUTO_PIC_SUFFIX}`; Object.assign(elShot, {