Skip to content

Commit

Permalink
Prefer $() to .ready
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandermeindl committed Oct 8, 2024
1 parent bdd1807 commit d032ed4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/javascripts/sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
main.toggleClass('visible-sidebar', true);
} // draw the toggle button once the DOM is complete

$(document).ready(setupToggleButton);
$(setupToggleButton);
};
})(jQuery);

Expand Down

0 comments on commit d032ed4

Please sign in to comment.