Fix Web & Game Activity Toggle (#777)

This commit is contained in:
Nuckyz 2023-04-04 10:26:53 -03:00 committed by GitHub
parent d931790ed0
commit 96dc2e12d0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 36 additions and 41 deletions

View file

@ -161,7 +161,11 @@ function initWs(isManual = false) {
return reply("Expected exactly one 'find' matches, found " + keys.length);
const mod = candidates[keys[0]];
let src = String(mod.original ?? mod);
let src = String(mod.original ?? mod).replaceAll("\n", "");
if (src.startsWith("function(")) {
src = "0," + src;
}
let i = 0;