// registerPage/onPage takes care of unregistering the listener on ajaxify
Hooks.registerPage=(hookName,method)=>{
Hooks.temporary.add({hookName,method});
Hooks.register(hookName,method);
returnHooks.register(hookName,method);
};
Hooks.onPage=Hooks.registerPage;
Hooks.register('action:ajaxify.start',()=>{
@ -86,6 +87,8 @@ define('hooks', [], () => {
}else{
Hooks.logs.log(`[hooks] Unregistration of ${hookName} failed, passed-in method is not a registered listener or the hook itself has no listeners, currently.`);