This commit is contained in:
Rizky 2023-11-09 04:53:48 +07:00
parent a8fe6a691d
commit b9f9877daa
2 changed files with 3 additions and 5 deletions

View File

@ -14,7 +14,6 @@ const start = async () => {
let react = {
root: null as null | ReactRoot,
};
(window as any).mobile = registerMobile();
if (
!["localhost", "127.0.0.1", "trycloudflare.com", "ngrok"].find((e) =>

View File

@ -32,10 +32,9 @@ export const initLive = async (p: PG, domain_or_siteid: string) => {
if (p.status === "init") {
p.status = "loading";
if (w.mobile && w.mobile.bind && w.mobile.send) {
w.mobile = registerMobile();
w.mobile.bind(p);
w.mobile.send({ type: "ready" });
}
w.isEditor = false;
w.isLayout = true;