@@ -422,12 +422,10 @@ const get_isRecursion = () => new Promise(resolve => {
422
422
} )
423
423
424
424
const get_isSystemFont = ( ) => new Promise ( resolve => {
425
- if ( ! isGecko ) {
426
- return resolve ( )
427
- }
425
+ if ( ! isGecko ) { return resolve ( ) }
428
426
let t0 = nowFn ( )
429
427
function exit ( value ) {
430
- log_perf ( SECTG , " isSystemFont" , t0 , "" , value )
428
+ log_perf ( SECTG , ' isSystemFont' , t0 , '' , value )
431
429
return resolve ( )
432
430
}
433
431
// first aFont per computed family
@@ -440,18 +438,17 @@ const get_isSystemFont = () => new Promise(resolve => {
440
438
try {
441
439
let el = dom . sysFont , data = [ ]
442
440
aFonts . forEach ( function ( font ) {
443
- el . style . font = "" // always clear in case a font is invalid/deprecated
441
+ el . style . font = '' // always clear in case a font is invalid/deprecated
444
442
el . style . font = font
445
- let family = getComputedStyle ( el ) [ " font-family" ]
443
+ let family = getComputedStyle ( el ) [ ' font-family' ]
446
444
if ( ! data . includes ( family ) ) {
447
445
data . push ( family )
448
446
isSystemFont . push ( font )
449
447
}
450
448
} )
451
- exit ( isSystemFont . join ( ", " ) )
449
+ exit ( isSystemFont . join ( ', ' ) )
452
450
} catch ( e ) {
453
- // log nothing: we run in fonts later
454
- exit ( e . name )
451
+ exit ( e . name ) // log nothing: we run in fonts later
455
452
}
456
453
} )
457
454
@@ -471,28 +468,26 @@ const get_isTB = (METRIC) => new Promise(resolve => {
471
468
function exit ( value ) {
472
469
isDone = true
473
470
try { document . head . removeChild ( css ) } catch ( e ) { }
474
- if ( " boolean" = == typeFn ( value ) ) { isTB = value }
475
- log_perf ( SECTG , METRIC , t0 , "" , value )
471
+ if ( ' boolean' == typeFn ( value ) ) { isTB = value }
472
+ log_perf ( SECTG , METRIC , t0 , '' , value )
476
473
return resolve ( value )
477
474
}
478
475
// FF121+: 1855861
479
476
const get_event = ( ) => new Promise ( resolve => {
480
477
css . onload = function ( ) { exit ( true ) }
481
478
css . onerror = function ( ) { exit ( false ) }
482
479
} )
483
- let css = document . createElement ( " link" )
480
+ let css = document . createElement ( ' link' )
484
481
if ( ! runSG ) {
485
482
try {
486
483
// note: we do not know the OS yet
487
484
// TB13: does not work on android
488
485
let path = 'chrome://browser/content/abouttor/aboutTor.css'
489
- // TB14 (added TB13.5)
490
- if ( isVer > 127 ) {
491
- path = 'chrome://global/content/torconnect/aboutTorConnect.css'
492
- }
486
+ // TB14 (added TB13.5) .. aaaaaaand still no good on android
487
+ //if (isVer > 127) {path = 'chrome://global/content/torconnect/aboutTorConnect.css'}
493
488
css . href = path
494
- css . type = " text/css"
495
- css . rel = " stylesheet"
489
+ css . type = ' text/css'
490
+ css . rel = ' stylesheet'
496
491
document . head . appendChild ( css )
497
492
get_event ( )
498
493
} catch ( e ) {
0 commit comments