Make loadExtensionURL consistent with error handling logic in loadExtensionIdSync

This commit is contained in:
Karishma Chadha 2019-03-27 17:42:10 -04:00
parent eccdeff2ce
commit 2fbd152c53

View file

@ -147,7 +147,7 @@ class ExtensionManager {
if (this.isExtensionLoaded(extensionURL)) { if (this.isExtensionLoaded(extensionURL)) {
const message = `Rejecting attempt to load a second extension with ID ${extensionURL}`; const message = `Rejecting attempt to load a second extension with ID ${extensionURL}`;
log.warn(message); log.warn(message);
return Promise.reject(new Error(message)); return Promise.resolve();
} }
const extension = builtinExtensions[extensionURL](); const extension = builtinExtensions[extensionURL]();