mirror of
https://github.com/google/blockly.git
synced 2026-01-11 02:47:09 +01:00
fix: Fix bug where workspace comments could not be created. (#6024)
This commit is contained in:
@@ -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');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user