diff options
author | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-10-26 18:38:48 +1100 |
---|---|---|
committer | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-10-26 18:38:48 +1100 |
commit | 686daf564d95971ab05227fad7d94e3dad126319 (patch) | |
tree | 4456bb7d1e2a937d99f594859778f3e9f3a8645b /scripts/client.js | |
parent | 'localStorage is not defined'? (diff) | |
download | server-686daf564d95971ab05227fad7d94e3dad126319.tar.xz |
Prevent client from deleting localStorage
Diffstat (limited to '')
-rw-r--r-- | scripts/client.js | 5 |
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; }; |