diff options
author | hackademix | 2019-10-27 21:33:21 +0000 |
---|---|---|
committer | hackademix | 2019-10-27 22:05:35 +0000 |
commit | ad5f6b1786ad1dc09b88ed9eef9cd558d726a665 (patch) | |
tree | db9e16aa3b6521049522121cfb358200e88775f4 /src/ui | |
parent | b1733d439298e81eefb38b3dc250dcae6f90a6e1 (diff) | |
download | noscript-ad5f6b1786ad1dc09b88ed9eef9cd558d726a665.tar.gz noscript-ad5f6b1786ad1dc09b88ed9eef9cd558d726a665.tar.xz noscript-ad5f6b1786ad1dc09b88ed9eef9cd558d726a665.zip |
[Tor] Treat .onion sites whose protocol is HTTP as if it was HTTPS.
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/ui.js | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/ui/ui.js b/src/ui/ui.js index 5c358be..7025ce6 100644 --- a/src/ui/ui.js +++ b/src/ui/ui.js @@ -38,11 +38,15 @@ var UI = (() => { UI.xssUserChoices = m.xssUserChoices; UI.local = m.local; UI.sync = m.sync; - if (UI.local && !UI.local.debug) { - debug = () => {}; // be quiet! - } + if (UI.local) { + if (!UI.local.debug) { + debug = () => {}; // be quiet! + } document.documentElement.classList.toggle("tor", !!UI.local.isTorBrowser); + if (UI.local.isTorBrowser) { + Sites.onionSecure = true; + } } resolve(); if (UI.onSettings) UI.onSettings(); |