From e83c240596264a948284665601fff5891cd42050 Mon Sep 17 00:00:00 2001 From: Jean Date: Sun, 26 Jan 2025 18:55:28 -0800 Subject: [PATCH] Fixing linted security issue --- src/popup.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/popup.js b/src/popup.js index 5d3c3ad..f56e87a 100644 --- a/src/popup.js +++ b/src/popup.js @@ -15,7 +15,7 @@ function loadDomain() { let tabs = browser.tabs.query({ active: true, currentWindow: true }); tabs.then((tabs) => { const hostname = new URL(tabs[0].url).hostname; - document.querySelector("#domain").innerHTML = hostname; + document.querySelector("#domain").textContent = hostname; if (!hostname) { disableToggle();