diff options
| author | Fuwn <[email protected]> | 2026-03-01 16:20:51 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2026-03-01 16:21:02 -0800 |
| commit | eae5d24d9e79e59a19d4721caaeaa0ca650ecb33 (patch) | |
| tree | 1b685bb248e051dfa26d2bfdebe6689402dd93c5 /src/lib/Utility/fingerprint.ts | |
| parent | chore(tooling): remove legacy eslint and prettier (diff) | |
| download | due.moe-eae5d24d9e79e59a19d4721caaeaa0ca650ecb33.tar.xz due.moe-eae5d24d9e79e59a19d4721caaeaa0ca650ecb33.zip | |
chore(biome): drop formatter style overrides
Diffstat (limited to 'src/lib/Utility/fingerprint.ts')
| -rw-r--r-- | src/lib/Utility/fingerprint.ts | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/src/lib/Utility/fingerprint.ts b/src/lib/Utility/fingerprint.ts index 2c7211b4..73a9a978 100644 --- a/src/lib/Utility/fingerprint.ts +++ b/src/lib/Utility/fingerprint.ts @@ -1,14 +1,18 @@ export const getFingerprint = () => - btoa( - `${(() => { - const gl = new OffscreenCanvas(0, 0).getContext('webgl'); + btoa( + `${(() => { + const gl = new OffscreenCanvas(0, 0).getContext("webgl"); - if (!gl) return 'none'; + if (!gl) return "none"; - const debugInfo = gl.getExtension('WEBGL_debug_renderer_info'); + const debugInfo = gl.getExtension("WEBGL_debug_renderer_info"); - return debugInfo ? gl.getParameter(debugInfo.UNMASKED_RENDERER_WEBGL) : 'unknown'; - })()}-${ - navigator === null || navigator === void 0 ? void 0 : navigator.hardwareConcurrency - }-${new Date().getTimezoneOffset()}` - ); + return debugInfo + ? gl.getParameter(debugInfo.UNMASKED_RENDERER_WEBGL) + : "unknown"; + })()}-${ + navigator === null || navigator === void 0 + ? void 0 + : navigator.hardwareConcurrency + }-${new Date().getTimezoneOffset()}`, + ); |