diff --git a/src/chrome/content-script.cjs b/src/chrome/content-script.cjs index 237d60e..79b4167 100644 --- a/src/chrome/content-script.cjs +++ b/src/chrome/content-script.cjs @@ -234,7 +234,7 @@ window.addEventListener("message", (event) => { container.append(div) } } - text.style.display = trans ? 'block' : 'none' + text && (text.style.display = trans ? 'block' : 'none') } }, false);