1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-10 04:32:35 +01:00

client patcher: discordstatus.com -> status.understars.dev

This commit is contained in:
Madeline 2022-10-30 10:56:37 +11:00
parent f7235f537a
commit 022f2ca5aa
No known key found for this signature in database
GPG Key ID: 1958E017C36F2E47

View File

@ -112,6 +112,7 @@ const doPatch = (content) => {
// )
content = content.replaceAll("status.discord.com", "status.understars.dev");
content = content.replaceAll("discordstatus.com", "status.understars.dev");
content = content.replaceAll(
"delete window.localStorage",
@ -167,7 +168,7 @@ const processFile = async (name) => {
process.stdout.moveCursor(0, 1);
const CACHE_MISSES = (await fs.readFile(path.join(CACHE_PATH, "..", "cacheMisses"))).toString().split("\n");
const CACHE_MISSES = (await fs.readFile(path.join(CACHE_PATH, "..", "cacheMisses"))).toString().split("\r").join("").split("\n");
while (CACHE_MISSES.length > 0) {
const asset = CACHE_MISSES.shift();
process.stdout.clearLine(0);