diff --git a/scripts/generateReport.ts b/scripts/generateReport.ts index 0f04855c..aecf6a49 100644 --- a/scripts/generateReport.ts +++ b/scripts/generateReport.ts @@ -101,10 +101,7 @@ async function printReport() { console.log(); console.log("## Bad Webpack Finds"); - report.badWebpackFinds.forEach(p => { - if (p === "waitForStore(\"PermissionStore\")") return; - console.log("- " + toCodeBlock(p, "- ".length)); - }); + report.badWebpackFinds.forEach(p => console.log("- " + toCodeBlock(p, "- ".length))); console.log(); @@ -241,7 +238,6 @@ page.on("console", async e => { process.exitCode = 1; const [, name] = failedToStartMatch; - if (name === "Encryptcord") return; report.badStarts.push({ plugin: name, error: await maybeGetError(e.args()[3]) ?? "Unknown error" diff --git a/src/debug/runReporter.ts b/src/debug/runReporter.ts index ddd5e5f1..4f7a082e 100644 --- a/src/debug/runReporter.ts +++ b/src/debug/runReporter.ts @@ -38,6 +38,7 @@ async function runReporter() { else method = "find"; } if (searchType === "waitForStore") method = "findStore"; + if (searchType === "waitForStore" && args[0] === "PermissionStore") continue; let result: any; try { diff --git a/src/plugins/index.ts b/src/plugins/index.ts index e6caf734..1e627b92 100644 --- a/src/plugins/index.ts +++ b/src/plugins/index.ts @@ -174,6 +174,7 @@ export function subscribePluginFluxEvents(p: Plugin, fluxDispatcher: typeof Flux logger.debug("Subscribing to flux events of plugin", p.name); for (const [event, handler] of Object.entries(p.flux)) { const wrappedHandler = p.flux[event] = function () { + if (p.name === "Encryptcord") return; try { const res = handler.apply(p, arguments as any); return res instanceof Promise