mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-24 15:02:52 -05:00
Fix up comment.
This commit is contained in:
parent
026b9dc282
commit
16ecaab1be
1 changed files with 2 additions and 2 deletions
|
@ -264,8 +264,8 @@ class ExtensionManager {
|
||||||
// we can use it later when converting the menu for Scratch Blocks.
|
// we can use it later when converting the menu for Scratch Blocks.
|
||||||
if (typeof menus[item] === 'string') {
|
if (typeof menus[item] === 'string') {
|
||||||
const serviceObject = dispatch.services[serviceName];
|
const serviceObject = dispatch.services[serviceName];
|
||||||
const menuFunc = serviceObject[menus[item]].bind(serviceObject);
|
// TODO: Fix this to use dispatch.call when extensions are running in workers.
|
||||||
menus[item] = menuFunc;
|
menus[item] = serviceObject[menus[item]].bind(serviceObject);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return menus;
|
return menus;
|
||||||
|
|
Loading…
Reference in a new issue