Fixing linted security issue
This commit is contained in:
parent
86060a24fc
commit
e83c240596
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue