Destructure browser globals from globalThis in analytics module

Fixes linter warnings for sessionStorage, navigator, document, location, screen, fetch.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Serreau Jovann
2026-03-26 21:11:15 +01:00
parent 73adc0a735
commit 20a6be0504

View File

@@ -1,3 +1,5 @@
const { sessionStorage, navigator, document, location, screen, fetch } = globalThis
let ENDPOINT = '/t' let ENDPOINT = '/t'
const SK_UID = '_u' const SK_UID = '_u'
const SK_HASH = '_h' const SK_HASH = '_h'