mirror of
https://github.com/Equicord/Equicord.git
synced 2025-01-18 21:33:35 -05:00
Fix
This commit is contained in:
parent
69e3005e7a
commit
9dc101f5a3
3 changed files with 3 additions and 5 deletions
|
@ -101,10 +101,7 @@ async function printReport() {
|
||||||
console.log();
|
console.log();
|
||||||
|
|
||||||
console.log("## Bad Webpack Finds");
|
console.log("## Bad Webpack Finds");
|
||||||
report.badWebpackFinds.forEach(p => {
|
report.badWebpackFinds.forEach(p => console.log("- " + toCodeBlock(p, "- ".length)));
|
||||||
if (p === "waitForStore(\"PermissionStore\")") return;
|
|
||||||
console.log("- " + toCodeBlock(p, "- ".length));
|
|
||||||
});
|
|
||||||
|
|
||||||
console.log();
|
console.log();
|
||||||
|
|
||||||
|
@ -241,7 +238,6 @@ page.on("console", async e => {
|
||||||
process.exitCode = 1;
|
process.exitCode = 1;
|
||||||
|
|
||||||
const [, name] = failedToStartMatch;
|
const [, name] = failedToStartMatch;
|
||||||
if (name === "Encryptcord") return;
|
|
||||||
report.badStarts.push({
|
report.badStarts.push({
|
||||||
plugin: name,
|
plugin: name,
|
||||||
error: await maybeGetError(e.args()[3]) ?? "Unknown error"
|
error: await maybeGetError(e.args()[3]) ?? "Unknown error"
|
||||||
|
|
|
@ -38,6 +38,7 @@ async function runReporter() {
|
||||||
else method = "find";
|
else method = "find";
|
||||||
}
|
}
|
||||||
if (searchType === "waitForStore") method = "findStore";
|
if (searchType === "waitForStore") method = "findStore";
|
||||||
|
if (searchType === "waitForStore" && args[0] === "PermissionStore") continue;
|
||||||
|
|
||||||
let result: any;
|
let result: any;
|
||||||
try {
|
try {
|
||||||
|
|
|
@ -174,6 +174,7 @@ export function subscribePluginFluxEvents(p: Plugin, fluxDispatcher: typeof Flux
|
||||||
logger.debug("Subscribing to flux events of plugin", p.name);
|
logger.debug("Subscribing to flux events of plugin", p.name);
|
||||||
for (const [event, handler] of Object.entries(p.flux)) {
|
for (const [event, handler] of Object.entries(p.flux)) {
|
||||||
const wrappedHandler = p.flux[event] = function () {
|
const wrappedHandler = p.flux[event] = function () {
|
||||||
|
if (p.name === "Encryptcord") return;
|
||||||
try {
|
try {
|
||||||
const res = handler.apply(p, arguments as any);
|
const res = handler.apply(p, arguments as any);
|
||||||
return res instanceof Promise
|
return res instanceof Promise
|
||||||
|
|
Loading…
Reference in a new issue