Fixed "Firefox" being shown instead of "Tor Browser" in the Security Level override option label.
This commit is contained in:
parent
00f5905953
commit
5de9230cee
|
@ -71,10 +71,12 @@ var UI = (() => {
|
||||||
debug = () => {}; // be quiet!
|
debug = () => {}; // be quiet!
|
||||||
}
|
}
|
||||||
if (UI.local.isTorBrowser) {
|
if (UI.local.isTorBrowser) {
|
||||||
let label = document.querySelector("span.tor");
|
const label = document.querySelector("span.tor");
|
||||||
if (label) {
|
if (label) {
|
||||||
label.textContent = label.textContent.replace(/\bTor Browser\b/g,
|
const browserName = (await browser.runtime.getBrowserInfo()).name;
|
||||||
(await browser.runtime.getBrowserInfo()).name)
|
if (browserName !== "Firefox") {
|
||||||
|
label.textContent = browserName;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
document.documentElement.classList.add("tor");
|
document.documentElement.classList.add("tor");
|
||||||
Sites.onionSecure = true;
|
Sites.onionSecure = true;
|
||||||
|
|
Loading…
Reference in New Issue