Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions plugins/dev-tools/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,15 @@ if (typeof window !== 'undefined') {
createPlayground = require('./playground/').createPlayground;
}

// Export Blockly into the global namespace to make it easier to debug.
Blockly.utils.global.Blockly = Blockly;
// Export Blockly into the global namespace to make it easier to debug from the
// console.
if (Blockly.utils.global) {
if (Blockly.utils.global.globalThis) {
Blockly.utils.global.globalThis.Blockly = Blockly;
} else {
Blockly.utils.global.Blockly = Blockly;
}
}

export {
addCodeEditor,
Expand Down