mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-24 06:52:40 -05:00
Add built-in extension "URL" to _loadedExtensions
Dupe prevention works better when you actually record the necessary info...
This commit is contained in:
parent
ae878b2050
commit
8bb48e2a53
1 changed files with 3 additions and 1 deletions
|
@ -116,7 +116,9 @@ class ExtensionManager {
|
||||||
|
|
||||||
const extension = builtinExtensions[extensionURL];
|
const extension = builtinExtensions[extensionURL];
|
||||||
const extensionInstance = new extension(this.runtime);
|
const extensionInstance = new extension(this.runtime);
|
||||||
return this._registerInternalExtension(extensionInstance);
|
return this._registerInternalExtension(extensionInstance).then(() => {
|
||||||
|
this._loadedExtensions.add(extensionURL);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
|
|
Loading…
Reference in a new issue