@@ -365,38 +365,32 @@ const get_isOS = () => new Promise(resolve => {
365
365
return resolve ( )
366
366
}
367
367
// FF124+: 1874232: this method is obsolete
368
+
369
+ let t0 = nowFn ( ) , count = 0
370
+ const METRIC = "isOS"
368
371
if ( isVer > 123 ) {
369
- // temp return: we need to find another method
370
- return resolve ( )
372
+ exit ( )
371
373
}
372
374
373
- let t0 = nowFn ( ) , count = 0
374
375
setTimeout ( ( ) => resolve ( zErrTime ) , 100 )
375
- const METRIC = "isOS"
376
376
function exit ( ) {
377
377
// FF51+ win/mac 1280128 / FF89+ linux 1701257 : min gecko > 88 so undefined = android
378
378
if ( isOS === undefined ) {
379
- // temp: while we don't have a 124 isVer, see return above for < 123
379
+ // temp: while we don't have a 124 isVer, see return above for > 123
380
380
// if undefined assume it's broken, sorry android 123 users but at least desktop 123 works
381
381
if ( isVerExtra == "+" ) {
382
+ //isOS = "android" // testing
383
+ log_perf ( SECTG , METRIC , t0 , "" , isOS + "" )
382
384
return resolve ( )
383
385
} else {
384
386
isOS = "android"
387
+ return resolve ( )
385
388
}
386
389
}
390
+ //isOS = "android"
387
391
// set icon
388
392
let pngURL = "url('chrome://branding/content/" + ( isOS == "android" ? "fav" : "" ) + "icon64.png')"
389
393
dom . fdResourceCss . style . backgroundImage = pngURL
390
- // tweak monospace size
391
- if ( isOS === "windows" || isOS == "android" ) {
392
- try {
393
- let items = document . querySelectorAll ( '.mono' )
394
- for ( let i = 0 ; i < items . length ; i ++ ) {
395
- items [ i ] . classList . add ( "monobigger" )
396
- items [ i ] . classList . remove ( "mono" )
397
- }
398
- } catch ( e ) { }
399
- }
400
394
log_perf ( SECTG , METRIC , t0 , "" , isOS )
401
395
return resolve ( )
402
396
}
@@ -1394,6 +1388,16 @@ function countJS(filename) {
1394
1388
log_perf ( SECTG , METRIC , t0 , "" , zErrTime )
1395
1389
log_alert ( SECTG , METRIC + ": " + zErrTime , true )
1396
1390
}
1391
+ // tweak monospace size: ToDo: this is bad design
1392
+ if ( isOS === "windows" || isOS == "android" ) {
1393
+ try {
1394
+ let items = document . querySelectorAll ( '.mono' )
1395
+ for ( let i = 0 ; i < items . length ; i ++ ) {
1396
+ items [ i ] . classList . add ( "monobigger" )
1397
+ items [ i ] . classList . remove ( "mono" )
1398
+ }
1399
+ } catch ( e ) { }
1400
+ }
1397
1401
// do once
1398
1402
let target = dom . pointertarget
1399
1403
target . addEventListener ( "pointerover" , ( event ) => {
0 commit comments