mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-23 06:23:37 -05:00
Show Categories that use custom code to load (variables, procedures) (#483)
This commit is contained in:
parent
343b5bfe8e
commit
739c5deb63
1 changed files with 5 additions and 1 deletions
|
@ -38,7 +38,11 @@ var filterToolbox = function (toolbox, opcodes) {
|
|||
) {
|
||||
if (category.nodeName.toLowerCase() !== 'category') continue;
|
||||
var filteredCategory = filterToolboxNode(category, opcodes);
|
||||
if (filteredCategory.hasChildNodes()) filteredToolbox.appendChild(filteredCategory);
|
||||
if (filteredCategory.hasChildNodes() ||
|
||||
filteredCategory.hasAttribute('custom')
|
||||
) {
|
||||
filteredToolbox.appendChild(filteredCategory);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
filteredToolbox = filterToolboxNode(toolbox, opcodes);
|
||||
|
|
Loading…
Reference in a new issue