This commit is contained in:
sadan 2024-09-17 17:00:34 -04:00
parent 6ea1c6e489
commit c7e8f1d7c1
No known key found for this signature in database
2 changed files with 10 additions and 1 deletions

View file

@ -61,7 +61,7 @@ export default definePlugin({
}, },
start() { 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) if (!IS_COMPANION_TEST)
initWs(); initWs();
}, },

View file

@ -125,6 +125,15 @@ export function initWs(isManual = false) {
toggleEnabled(pluginName, reply); toggleEnabled(pluginName, reply);
break; break;
} }
case "rawId": {
const { id } = data;
replyData({
ok: true,
data: extractModule(id),
type: "ret"
});
break;
}
case "diff": { case "diff": {
try { try {
const { extractType, idOrSearch } = data; const { extractType, idOrSearch } = data;