From 9d3b5af3e3d6ad1f02e06534ecc9f3c77207267c Mon Sep 17 00:00:00 2001 From: Madeline <46743919+MaddyUnderStars@users.noreply.github.com> Date: Wed, 26 Oct 2022 16:36:54 +1100 Subject: 'localStorage is not defined'? --- assets/client_test/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'assets/client_test/index.html') diff --git a/assets/client_test/index.html b/assets/client_test/index.html index da6e2854..f3dbd514 100644 --- a/assets/client_test/index.html +++ b/assets/client_test/index.html @@ -41,8 +41,8 @@ GLOBAL_ENV.MEDIA_PROXY_ENDPOINT = location.protocol + "//" + GLOBAL_ENV.CDN_HOST; // TODO: remote auth // window.GLOBAL_ENV.REMOTE_AUTH_ENDPOINT = window.GLOBAL_ENV.GATEWAY_ENDPOINT.replace(/wss?:/, ""); - localStorage.setItem("gatewayURL", window.GLOBAL_ENV.GATEWAY_ENDPOINT); - localStorage.setItem( + window.localStorage.setItem("gatewayURL", window.GLOBAL_ENV.GATEWAY_ENDPOINT); + window.localStorage.setItem( "DeveloperOptionsStore", `{"trace":false,"canary":false,"logGatewayEvents":true,"logOverlayEvents":true,"logAnalyticsEvents":true,"sourceMapsEnabled":false,"axeEnabled":false}` ); -- cgit 1.5.1