Fixing linted security issue

This commit is contained in:
Jean Viscogliosi-Pate 2025-01-26 18:55:28 -08:00
parent 86060a24fc
commit e83c240596
1 changed files with 1 additions and 1 deletions

View File

@ -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();