summary refs log tree commit diff
path: root/scripts/client.js
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-10-26 18:38:48 +1100
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-10-26 18:38:48 +1100
commit686daf564d95971ab05227fad7d94e3dad126319 (patch)
tree4456bb7d1e2a937d99f594859778f3e9f3a8645b /scripts/client.js
parent'localStorage is not defined'? (diff)
downloadserver-686daf564d95971ab05227fad7d94e3dad126319.tar.xz
Prevent client from deleting localStorage
Diffstat (limited to '')
-rw-r--r--scripts/client.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/client.js b/scripts/client.js
index b8425f34..b76048ba 100644
--- a/scripts/client.js
+++ b/scripts/client.js
@@ -113,6 +113,11 @@ const doPatch = (content) => {
 
 	content = content.replaceAll("status.discord.com", "status.understars.dev");
 
+	content = content.replaceAll(
+		"delete window.localStorage",
+		"console.log('Prevented deletion of localStorage')"
+	);
+
 	return content;
 };