fix
This commit is contained in:
parent
a8fe6a691d
commit
b9f9877daa
|
|
@ -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) =>
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue