aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/devCompanion.dev.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/devCompanion.dev.tsx')
-rw-r--r--src/plugins/devCompanion.dev.tsx6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/plugins/devCompanion.dev.tsx b/src/plugins/devCompanion.dev.tsx
index c675fc2..b84dd75 100644
--- a/src/plugins/devCompanion.dev.tsx
+++ b/src/plugins/devCompanion.dev.tsx
@@ -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;