diff --git a/public/persona.js b/public/persona.js index e5b8249..2a46218 100644 --- a/public/persona.js +++ b/public/persona.js @@ -10,13 +10,14 @@ $(document).ready(function () { $(window).on('resize', utils.debounce(configureNavbarHiding, 200)); $(window).on('resize', updatePanelOffset); - $(window).on('action:app.load', function () { - setupTaskbar(); - setupMobileMenu(); + require(['hooks'], (hooks) => { + hooks.on('action:app.load', () => { + setupTaskbar(); + setupMobileMenu(); + }); }); function updatePanelOffset() { - var env = utils.findBootstrapEnvironment(); const headerEl = document.getElementById('header-menu'); if (!headerEl) {