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:
@@ -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'
|
||||||
|
|||||||
Reference in New Issue
Block a user