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/developers.html | 74 +++++++++++++++++++------------------- assets/client_test/index.html | 4 +-- 2 files changed, 40 insertions(+), 38 deletions(-) (limited to 'assets/client_test') diff --git a/assets/client_test/developers.html b/assets/client_test/developers.html index 1673e982..23d0c3f1 100644 --- a/assets/client_test/developers.html +++ b/assets/client_test/developers.html @@ -1,41 +1,43 @@ - - - - - - Discord Test Client Developer Portal - - + + + - -
- - - - - - + +
+ + + + + + + \ No newline at end of file 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.4.1