fix: Fix bug where workspace comments could not be created. (#6024)

This commit is contained in:
Aaron Dodson
2022-03-28 15:56:30 -07:00
committed by GitHub
parent ca6e590101
commit 2cf8eb87dc

View File

@@ -342,7 +342,7 @@ exports.commentDuplicateOption = commentDuplicateOption;
* @alias Blockly.ContextMenu.workspaceCommentOption
*/
const workspaceCommentOption = function(ws, e) {
const WorkspaceCommentSvg = goog.module.get('Blockly.WorkspaceCommentSvg');
const {WorkspaceCommentSvg} = goog.module.get('Blockly.WorkspaceCommentSvg');
if (!WorkspaceCommentSvg) {
throw Error('Missing require for Blockly.WorkspaceCommentSvg');
}