fix: use components for toggleNavbar instead

This commit is contained in:
Julian Lam
2021-02-26 15:03:24 -05:00
parent 9bf94ad50f
commit 114e3a1e76

View File

@@ -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() {