summary refs log tree commit diff
path: root/assets/client_test
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-10-26 16:36:54 +1100
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-10-26 16:36:54 +1100
commit9d3b5af3e3d6ad1f02e06534ecc9f3c77207267c (patch)
treeffb40a4500f88a2b2b6c93fe6ad937798b2b5436 /assets/client_test
parenthandle a specific case with rtl character (diff)
downloadserver-9d3b5af3e3d6ad1f02e06534ecc9f3c77207267c.tar.xz
'localStorage is not defined'?
Diffstat (limited to 'assets/client_test')
-rw-r--r--assets/client_test/developers.html74
-rw-r--r--assets/client_test/index.html4
2 files changed, 40 insertions, 38 deletions
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 @@
 <!DOCTYPE html>
 <html class="theme-dark" data-theme="dark">
-	<head>
-		<meta charset="utf-8" />
-		<meta content="width=device-width, initial-scale=1.0, maximum-scale=1, user-scalable=no" name="viewport" />
 
-		<link rel="stylesheet" href="/assets/532.03aaeef88460fae60534.css" integrity="" />
-		<link rel="icon" href="/assets/07dca80a102d4149e9736d4b162cff6f.ico" />
-		<title>Discord Test Client Developer Portal</title>
-		<meta charset="utf-8" data-react-helmet="true" />
-	</head>
+<head>
+	<meta charset="utf-8" />
+	<meta content="width=device-width, initial-scale=1.0, maximum-scale=1, user-scalable=no" name="viewport" />
 
-	<body>
-		<div id="app-mount"></div>
-		<script>
-			window.GLOBAL_ENV = {
-				API_VERSION: 9,
-				API_ENDPOINT: "/api",
-				WEBAPP_ENDPOINT: "",
-				CDN_HOST: `${location.hostname}:3003`,
+	<link rel="stylesheet" href="/assets/532.03aaeef88460fae60534.css" integrity="" />
+	<link rel="icon" href="/assets/07dca80a102d4149e9736d4b162cff6f.ico" />
+	<title>Discord Test Client Developer Portal</title>
+	<meta charset="utf-8" data-react-helmet="true" />
+</head>
 
-				BRAINTREE_KEY: "production_5st77rrc_49pp2rp4phym7387",
-				STRIPE_KEY: "pk_live_CUQtlpQUF0vufWpnpUmQvcdi",
-				MARKETING_ENDPOINT: "//discord.com",
-				RELEASE_CHANNEL: "stable",
-				ALGOLIA_KEY: "aca0d7082e4e63af5ba5917d5e96bed0"
-			};
-            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(
-				"DeveloperOptionsStore",
-				`{"trace":false,"canary":false,"logGatewayEvents":true,"logOverlayEvents":true,"logAnalyticsEvents":true,"sourceMapsEnabled":false,"axeEnabled":false}`
-			);
-		</script>
-		<script src="/assets/41fde19fdf180f3d4315.js" integrity=""></script>
-		<script src="/assets/7b04a3ab10e05dd9054e.js" integrity=""></script>
-		<script src="/assets/d1f811da193e5648048b.js" integrity=""></script>
-	</body>
-</html>
+<body>
+	<div id="app-mount"></div>
+	<script>
+		window.GLOBAL_ENV = {
+			API_VERSION: 9,
+			API_ENDPOINT: "/api",
+			WEBAPP_ENDPOINT: "",
+			CDN_HOST: `${location.hostname}:3003`,
+
+			BRAINTREE_KEY: "production_5st77rrc_49pp2rp4phym7387",
+			STRIPE_KEY: "pk_live_CUQtlpQUF0vufWpnpUmQvcdi",
+			MARKETING_ENDPOINT: "//discord.com",
+			RELEASE_CHANNEL: "stable",
+			ALGOLIA_KEY: "aca0d7082e4e63af5ba5917d5e96bed0"
+		};
+		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?:/, "");
+		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}`
+		);
+	</script>
+	<script src="/assets/41fde19fdf180f3d4315.js" integrity=""></script>
+	<script src="/assets/7b04a3ab10e05dd9054e.js" integrity=""></script>
+	<script src="/assets/d1f811da193e5648048b.js" integrity=""></script>
+</body>
+
+</html>
\ 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}`
 		);