Use globalThis for TextEncoder, TextDecoder, and atob browser globals

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Serreau Jovann
2026-03-26 21:08:37 +01:00
parent a71493b87c
commit 73adc0a735
2 changed files with 3 additions and 3 deletions

View File

@@ -403,7 +403,7 @@
let reference = decodedText;
try {
const decoded = atob(decodedText);
const decoded = globalThis.atob(decodedText);
if (decoded.startsWith('ETICKET-')) reference = decoded;
} catch {}