From d019b1d381aab67a658d7c8ccbea6cba6e944771 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Fri, 25 Mar 2022 15:26:22 +0100 Subject: [PATCH] make extra sure to avoid variable reuse --- main.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.ts b/main.ts index aa09838..b3143f3 100644 --- a/main.ts +++ b/main.ts @@ -101,9 +101,9 @@ class CustomFrameView extends ItemView { if (frame.src.contains(new URL(other.url).host)) { other.executeJavaScript(` (() => { - let style = document.createElement("style"); - style.textContent = \`${this.frame.customCss}\`; - document.head.appendChild(style); + let customFramesStyle = document.createElement("style"); + customFramesStyle.textContent = \`${this.frame.customCss}\`; + document.head.appendChild(customFramesStyle); })(); `); }