mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-15 09:33:03 -04:00
Fix Web & Game Activity Toggle (#777)
This commit is contained in:
parent
d931790ed0
commit
96dc2e12d0
7 changed files with 36 additions and 41 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue