mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-23 14:32:59 -05:00
Refactor loadExtensionURL for readability.
This commit is contained in:
parent
efcb801fe3
commit
061b0b081f
1 changed files with 3 additions and 3 deletions
|
@ -149,9 +149,9 @@ class ExtensionManager {
|
|||
|
||||
const extension = builtinExtensions[extensionURL]();
|
||||
const extensionInstance = new extension(this.runtime);
|
||||
return Promise.resolve(this._registerInternalExtension(extensionInstance)).then(serviceName => {
|
||||
this._loadedExtensions.set(extensionURL, serviceName);
|
||||
});
|
||||
const serviceName = this._registerInternalExtension(extensionInstance);
|
||||
this._loadedExtensions.set(extensionURL, serviceName);
|
||||
return Promise.resolve();
|
||||
}
|
||||
|
||||
return new Promise((resolve, reject) => {
|
||||
|
|
Loading…
Reference in a new issue