Use the actual browser's brand name for Tor Browser derivatives.
This commit is contained in:
parent
97131f4abb
commit
76838e679b
|
@ -70,8 +70,13 @@ var UI = (() => {
|
||||||
if (!UI.local.debug) {
|
if (!UI.local.debug) {
|
||||||
debug = () => {}; // be quiet!
|
debug = () => {}; // be quiet!
|
||||||
}
|
}
|
||||||
document.documentElement.classList.toggle("tor", !!UI.local.isTorBrowser);
|
|
||||||
if (UI.local.isTorBrowser) {
|
if (UI.local.isTorBrowser) {
|
||||||
|
let label = document.querySelector("span.tor");
|
||||||
|
if (label) {
|
||||||
|
label.textContent = label.textContent.replace(/\bTor Browser\b/g,
|
||||||
|
(await browser.runtime.getBrowserInfo()).name)
|
||||||
|
}
|
||||||
|
document.documentElement.classList.add("tor");
|
||||||
Sites.onionSecure = true;
|
Sites.onionSecure = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue