Remove label generation for extensions

This commit is contained in:
Paul Kaplan 2017-10-04 15:02:09 -04:00
parent 6087b5346c
commit 0358d6c0c3

View file

@ -523,8 +523,6 @@ class Runtime extends EventEmitter {
for (const categoryInfo of this._blockInfo) { for (const categoryInfo of this._blockInfo) {
const {name, color1, color2} = categoryInfo; const {name, color1, color2} = categoryInfo;
xmlParts.push(`<category name="${name}" colour="${color1}" secondaryColour="${color2}">`); 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.apply(xmlParts, categoryInfo.blocks.map(blockInfo => blockInfo.xml));
xmlParts.push('</category>'); xmlParts.push('</category>');
} }