prasi-lib/utils/init.ts

18 lines
350 B
TypeScript
Executable File

import { overrideNav } from "./override-nav";
const w = window as any;
if (typeof isEditor === "undefined") {
if (
location.hostname === "prasi.avolut.com" &&
location.pathname.startsWith("/ed")
) {
w.isEditor = true;
} else {
w.isEditor = false;
}
}
w.isMobile = false;
w.isDesktop = false;
overrideNav();