diff --git a/application/helpers/hlp_header_helper.php b/application/helpers/hlp_header_helper.php index 86c7dae63..2d425500d 100644 --- a/application/helpers/hlp_header_helper.php +++ b/application/helpers/hlp_header_helper.php @@ -298,7 +298,7 @@ function extendableApps($includes) if(is_readable(FHCPATH . $extend_js)) { - array_push($includes['customJSModules'], $extend_js); + array_unshift($includes['customJSModules'], $extend_js); } if(is_readable(FHCPATH . $extend_css)) diff --git a/public/js/apps/Dashboard/Fhc.js b/public/js/apps/Dashboard/Fhc.js index 093ad815b..3dd2f3fc7 100644 --- a/public/js/apps/Dashboard/Fhc.js +++ b/public/js/apps/Dashboard/Fhc.js @@ -321,6 +321,9 @@ const app = Vue.createApp({ // kind of a bandaid for bad css on some pages to avoid horizontal scroll setScrollbarWidth(); +FhcApps.router.makeExtendable(router); +FhcApps.makeExtendable(app); + app.use(router); app.use(primevue.config.default, { zIndex: {