mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
fix: use components for toggleNavbar instead
This commit is contained in:
@@ -412,10 +412,10 @@ app.cacheBuster = null;
|
||||
};
|
||||
|
||||
app.toggleNavbar = function (state) {
|
||||
var navbarEl = $('.navbar');
|
||||
if (navbarEl) {
|
||||
require(['components'], (components) => {
|
||||
const navbarEl = components.get('navbar');
|
||||
navbarEl[state ? 'show' : 'hide']();
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
function createHeaderTooltips() {
|
||||
|
||||
Reference in New Issue
Block a user