fix ContextMenus on canary
This commit is contained in:
parent
e69575f273
commit
d542095993
2 changed files with 15 additions and 10 deletions
|
|
@ -445,13 +445,15 @@ function runFactoryWithWrap(patchedFactory: PatchedModuleFactory, thisArg: unkno
|
|||
}
|
||||
|
||||
for (const exportKey in exports) {
|
||||
const exportValue = exports[exportKey];
|
||||
try {
|
||||
const exportValue = exports[exportKey];
|
||||
|
||||
if (exportValue != null && filter(exportValue)) {
|
||||
waitForSubscriptions.delete(filter);
|
||||
callback(exportValue, module.id);
|
||||
break;
|
||||
}
|
||||
if (exportValue != null && filter(exportValue)) {
|
||||
waitForSubscriptions.delete(filter);
|
||||
callback(exportValue, module.id);
|
||||
break;
|
||||
}
|
||||
} catch { }
|
||||
}
|
||||
} catch (err) {
|
||||
logger.error("Error while firing callback for Webpack waitFor subscription:\n", err, filter, callback);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue