Skip to content

Commit

Permalink
Fix JS Paint in 98.js.org
Browse files Browse the repository at this point in the history
The fix 1j01@421fad7dc25c4d27caa46535a
was incomplete and untested until now.
  • Loading branch information
1j01 committed Jun 28, 2024
1 parent 34e151c commit 0480439
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,7 @@ function* traverse_menu(menu_items, menu_element) {
}
yield [menu_item, menu_item_element];
if (menu_item.submenu) {
yield* traverse_menu(menu_item.submenu, document.getElementById(menu_item_element.getAttribute("aria-controls")));
yield* traverse_menu(menu_item.submenu, menu_document.getElementById(menu_item_element.getAttribute("aria-controls")));
}
// if (menu_item.radioItems) {
// yield* traverse_menu(menu_item.radioItems, menu_element);
Expand Down Expand Up @@ -687,7 +687,7 @@ for (const [menu_item, menu_item_element] of traverse_menu(menus["E&xtras"], ext
`;
}
}
$("<style>").text(emoji_css).appendTo("head");
$("<style>").text(emoji_css).appendTo(menu_document.head);

// Electron menu integration
if (window.is_electron_app) {
Expand Down

0 comments on commit 0480439

Please sign in to comment.