This commit is contained in:
rizky 2024-08-29 01:43:58 -07:00
parent 0d540214ea
commit 5f29db5756
1 changed files with 2 additions and 1 deletions

View File

@ -5,7 +5,8 @@ import { getPathname } from "lib/utils/pathname";
const w = window as any;
export const overrideNav = (arg?: { local?: any }) => {
if ((!w.prasi_menu && !isEditor) || arg?.local) {
if (isEditor) return;
if (!w.prasi_menu || arg?.local) {
if (!w.prasi_menu) {
w.prasi_menu = { nav_override: true, nav: w.navigate, pm: null };
}