Skip to content

Commit

Permalink
core#1182 - revert crm.menubar.js changes
Browse files Browse the repository at this point in the history
  • Loading branch information
MegaphoneJon committed Aug 12, 2019
1 parent 574fb5d commit 247f26f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/crm.menubar.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@

// Wait for crm-container present on the page as it's faster than document.ready
function insert(markup) {
if ($('.crm-container').length) {
if ($('#crm-container').length) {
render(markup);
} else {
new MutationObserver(function(mutations, observer) {
_.each(mutations, function(mutant) {
_.each(mutant.addedNodes, function(node) {
if ($(node).is('.crm-container')) {
if ($(node).is('#crm-container')) {
render(markup);
observer.disconnect();
}
Expand Down

0 comments on commit 247f26f

Please sign in to comment.