mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-07 13:43:03 -04:00
fix canary
This commit is contained in:
parent
92ff9c1ca4
commit
e69575f273
1 changed files with 6 additions and 3 deletions
|
@ -412,9 +412,12 @@ function runFactoryWithWrap(patchedFactory: PatchedModuleFactory, thisArg: unkno
|
|||
exports = module.exports;
|
||||
|
||||
if (typeof require === "function" && require.c) {
|
||||
if (_blacklistBadModules(require.c, exports, module.id)) {
|
||||
return factoryReturn;
|
||||
}
|
||||
// module might not have been fully initialised yet
|
||||
try {
|
||||
if (_blacklistBadModules(require.c, exports, module.id)) {
|
||||
return factoryReturn;
|
||||
}
|
||||
} catch { }
|
||||
}
|
||||
|
||||
if (exports == null) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue