mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-07-26 06:01:11 -04: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…
Add table
Add a link
Reference in a new issue