Merge pull request #686 from paulkaplan/fix-extension-labels

Remove label generation for extensions
This commit is contained in:
Paul Kaplan authored and GitHub committed 2017-10-04 15:37:06 -04:00
commit e4830dfe51
1 file changed
-2
-2
View File
@@ -531,8 +531,6 @@ class Runtime extends EventEmitter {
for (const categoryInfo of this._blockInfo) {
const {name, color1, color2} = categoryInfo;
xmlParts.push(`<category name="${name}" colour="${color1}" secondaryColour="${color2}">`);
// @todo only add this label for user-loaded extensions?
xmlParts.push(`<label text="${name}" web-class="extensionLabel"/>`);
xmlParts.push.apply(xmlParts, categoryInfo.blocks.map(blockInfo => blockInfo.xml));
xmlParts.push('</category>');
}