From c7e8f1d7c19011c0777ef09c04001153e3ed028f Mon Sep 17 00:00:00 2001 From: sadan <117494111+sadan4@users.noreply.github.com> Date: Tue, 17 Sep 2024 17:00:34 -0400 Subject: [PATCH] guh --- src/plugins/devCompanion.dev/index.tsx | 2 +- src/plugins/devCompanion.dev/initWs.tsx | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/plugins/devCompanion.dev/index.tsx b/src/plugins/devCompanion.dev/index.tsx index 988f340dc..11ab2d4ae 100644 --- a/src/plugins/devCompanion.dev/index.tsx +++ b/src/plugins/devCompanion.dev/index.tsx @@ -61,7 +61,7 @@ export default definePlugin({ }, start() { - // if were running the reporter, we need to initws in the reporter file to avoid a race condition + // if we're running the reporter, we need to initws in the reporter file to avoid a race condition if (!IS_COMPANION_TEST) initWs(); }, diff --git a/src/plugins/devCompanion.dev/initWs.tsx b/src/plugins/devCompanion.dev/initWs.tsx index 3fee2e150..89a2aaaab 100644 --- a/src/plugins/devCompanion.dev/initWs.tsx +++ b/src/plugins/devCompanion.dev/initWs.tsx @@ -125,6 +125,15 @@ export function initWs(isManual = false) { toggleEnabled(pluginName, reply); break; } + case "rawId": { + const { id } = data; + replyData({ + ok: true, + data: extractModule(id), + type: "ret" + }); + break; + } case "diff": { try { const { extractType, idOrSearch } = data;