Reporting: do not error for patches with all:true

This commit is contained in:
Vendicated 2022-11-11 19:01:01 +01:00
parent a86452e774
commit cc7c14ec88
No known key found for this signature in database
GPG key ID: EC781ADFB93EFFA3

View file

@ -252,8 +252,10 @@ function runTime(token: string) {
console.error("[PUP_DEBUG]", "Finished loading chunks!"); console.error("[PUP_DEBUG]", "Finished loading chunks!");
for (const patch of Vencord.Plugins.patches) { for (const patch of Vencord.Plugins.patches) {
if (!patch.all) {
new Vencord.Util.Logger("WebpackInterceptor").warn(`Patch by ${patch.plugin} found no module (Module id is -): ${patch.find}`); new Vencord.Util.Logger("WebpackInterceptor").warn(`Patch by ${patch.plugin} found no module (Module id is -): ${patch.find}`);
} }
}
setTimeout(() => console.log("PUPPETEER_TEST_DONE_SIGNAL"), 1000); setTimeout(() => console.log("PUPPETEER_TEST_DONE_SIGNAL"), 1000);
}, 1000)); }, 1000));
} catch (e) { } catch (e) {