File tree Expand file tree Collapse file tree 2 files changed +5
-7
lines changed
Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -46,11 +46,9 @@ var UI = (() => {
4646 "/nscl/common/Permissions.js" ,
4747 "/nscl/common/Policy.js" ,
4848 ] ;
49+
4950 this . mobile = UA . mobile ;
50- let root = document . documentElement ;
51- if ( this . mobile ) {
52- root . classList . add ( "mobile" ) ;
53- }
51+
5452 await include ( scripts ) ;
5553
5654 let inited = new Promise ( resolve => {
@@ -71,6 +69,8 @@ var UI = (() => {
7169 debug = ( ) => { } ; // be quiet!
7270 }
7371 if ( UI . local . isTorBrowser ) {
72+ Sites . onionSecure = true ;
73+ // TODO: replace the following with pure CSS :content in common.css
7474 const label = document . querySelector ( "span.tor" ) ;
7575 if ( label ) {
7676 const browserName = ( await browser . runtime . getBrowserInfo ( ) ) . name ;
@@ -80,8 +80,6 @@ var UI = (() => {
8080 ) ;
8181 }
8282 }
83- document . documentElement . classList . add ( "tor" ) ;
84- Sites . onionSecure = true ;
8583 }
8684 }
8785 resolve ( ) ;
You can’t perform that action at this time.
0 commit comments