mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-23 14:32:59 -05:00
Make loadExtensionURL consistent with error handling logic in loadExtensionIdSync
This commit is contained in:
parent
eccdeff2ce
commit
2fbd152c53
1 changed files with 1 additions and 1 deletions
|
@ -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]();
|
||||||
|
|
Loading…
Reference in a new issue