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
6 changes: 4 additions & 2 deletions addons/editor-devtools/DevTools.js
Original file line number Diff line number Diff line change
Expand Up @@ -1383,7 +1383,7 @@ export default class DevTools {
if (blockSvg || isBackground) {
let dataId = blockSvg && blockSvg.getAttribute("data-id");
if (dataId || isBackground) {
setTimeout(() => {
setTimeout(async () => {
// Is there a popup menu to hi-jack?
let widget = document.querySelector("div.blocklyWidgetDiv");
if (!widget) {
Expand All @@ -1395,9 +1395,11 @@ export default class DevTools {
}
if (isBackground) {
let nodes = blocklyContextMenu.children;
const realBlockly = await this.addon.tab.traps.getBlockly();
for (const node of nodes) {
if (node.textContent === this.m("clean-plus")) {
if (node.textContent === realBlockly.Msg.CLEAN_UP) {
node.remove();
break;
}
}
blocklyContextMenu.insertAdjacentHTML(
Expand Down