From 80815d2d1b58d74bd22123415d9a8f9311671f3c Mon Sep 17 00:00:00 2001 From: Thorin-Oakenpants Date: Thu, 31 Oct 2024 12:45:19 +0000 Subject: [PATCH] tidy --- js/screen.js | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/js/screen.js b/js/screen.js index 4a0698c5..1624b961 100644 --- a/js/screen.js +++ b/js/screen.js @@ -1412,16 +1412,14 @@ const outputUA = (os = isOS) => new Promise(resolve => { }) const outputFD = () => new Promise(resolve => { - let METRIC = 'infinity_architecture', res + let METRIC = 'infinity_architecture', value, data = '' try { - const f = new Float32Array(1) - const u8 = new Uint8Array(f.buffer) - f[0] = Infinity - Infinity - res = u8[3] + const f = new Float32Array([Infinity - Infinity]) + value = new Uint8Array(f.buffer)[3] } catch(e) { - res = e+'' + value = e; data = zErrLog } - addBoth(3, METRIC, res) + addBoth(3, METRIC, value,'','', data) if (!isGecko) { let aList = ['browser','logo','wordmark','browser_architecture','os','version'] @@ -1497,7 +1495,7 @@ const outputFD = () => new Promise(resolve => { metricsPrefix = (isMullvad ? 'MB' : (isTB ? 'TB': 'FF')) + isVer + isVerExtra +'-'+ (isOS !== undefined ? isOS : 'unknown') +'-' } // arch: FF110+ pref removed: error means 32bit - let str = '64bit', data = 64 + let str = '64bit'; data = 64 if (isArch !== true) { if ('RangeError: invalid array length' == isArch) { str = '32bit'; data = 32