mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-08-28 22:30:40 -04:00
Filter the playground toolbox
This commit is contained in:
parent
99e1b24285
commit
a9b495fced
1 changed files with 5 additions and 0 deletions
|
@ -59,6 +59,11 @@ window.onload = function () {
|
|||
});
|
||||
window.workspace = workspace;
|
||||
|
||||
// Filter available blocks
|
||||
var toolbox = vm.filterToolbox(workspace.options.languageTree);
|
||||
// var toolbox = workspace.options.languageTree;
|
||||
workspace.updateToolbox(toolbox);
|
||||
|
||||
// Attach scratch-blocks events to VM.
|
||||
workspace.addChangeListener(vm.blockListener);
|
||||
var flyoutWorkspace = workspace.getFlyout().getWorkspace();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue