diff --git a/src/popup/popup.ts b/src/popup/popup.ts index 19dfb99..019bdfb 100644 --- a/src/popup/popup.ts +++ b/src/popup/popup.ts @@ -9,7 +9,7 @@ class ExtensionToggle extends HTMLButtonElement { return; } this.isON = v; - this.textContent = this.on ? "ON" : "OFF"; + this.render(); const toggleEvent = new CustomEvent("extensionToggled", { detail: this.on, });