Skip to content

Commit

Permalink
fix: style attribute for xml in ws factory (google#7554)
Browse files Browse the repository at this point in the history
  • Loading branch information
maribethb committed Sep 28, 2023
1 parent cc47c3a commit ca4fa7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions demos/blockfactory/workspacefactory/wfactory_generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ WorkspaceFactoryGenerator.prototype.generateToolboxXml = function() {
// Create DOM for XML.
var xmlDom = Blockly.utils.xml.createElement('xml');
xmlDom.id = 'toolbox';
xmlDom.style.display = 'none';
xmlDom.setAttribute('style', 'display: none');

if (!this.model.hasElements()) {
// Toolbox has no categories. Use XML directly from workspace.
Expand Down Expand Up @@ -111,7 +111,7 @@ WorkspaceFactoryGenerator.prototype.generateWorkspaceXml = function() {
// Generate XML and set attributes.
var xmlDom = Blockly.Xml.workspaceToDom(this.hiddenWorkspace);
xmlDom.id = 'workspaceBlocks';
xmlDom.style.display = 'none';
xmlDom.setAttribute('style', 'display: none');
return xmlDom;
};

Expand Down

0 comments on commit ca4fa7e

Please sign in to comment.