From 041a13c9d305b95c9a48f02487db6804e2cf2fe2 Mon Sep 17 00:00:00 2001 From: Vendicated Date: Sun, 26 Mar 2023 01:27:01 +0100 Subject: DevCompanion: Always use original --- src/plugins/devCompanion.dev.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/plugins/devCompanion.dev.tsx b/src/plugins/devCompanion.dev.tsx index 5c3c58e..b9a7e4d 100644 --- a/src/plugins/devCompanion.dev.tsx +++ b/src/plugins/devCompanion.dev.tsx @@ -158,7 +158,8 @@ function initWs(isManual = false) { if (keys.length !== 1) return reply("Expected exactly one 'find' matches, found " + keys.length); - let src = String(candidates[keys[0]]); + const mod = candidates[keys[0]]; + let src = String(mod.original ?? mod); let i = 0; -- cgit