From 36def81200b8e6d89f2dc54490068ba3dab660f7 Mon Sep 17 00:00:00 2001 From: aedlebeck Date: Wed, 19 Jan 2022 17:46:21 -0800 Subject: [PATCH] Update content.js --- content.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/content.js b/content.js index a8f4c12..6d74d92 100644 --- a/content.js +++ b/content.js @@ -67,11 +67,8 @@ function writeData(data, keyword) { data = JSON.stringify(data); data = data.substring(1, data.length - 1); data = data.replaceAll("\"", " "); - if (divs[i].innerHTML.includes(keyword) && JSON.stringify(data) !== '{}') { + if (divs[i].innerHTML.includes(keyword) && data !== '{}' && data) { divs[i].innerHTML = divs[i].innerHTML.replace(temp, data); - } else { - divs[i].innerHTML = divs[i].innerHTML; } - } -} \ No newline at end of file +}