fix
This commit is contained in:
parent
526efe15fe
commit
964f0fe8ba
|
|
@ -21,6 +21,13 @@ export const EdMain = () => {
|
||||||
return "";
|
return "";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if (w.prasiContext) {
|
||||||
|
w.prasiContext.renderEditor = () => {
|
||||||
|
active.should_render_main = true;
|
||||||
|
p.render();
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
let meta: undefined | IMeta = undefined;
|
let meta: undefined | IMeta = undefined;
|
||||||
|
|
||||||
if (active.comp_id) {
|
if (active.comp_id) {
|
||||||
|
|
|
||||||
|
|
@ -30,8 +30,13 @@ export const declareScope = (p: PG, meta: IMeta, monaco: Monaco) => {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const vars: Record<string, { mode: "local" | "prop" | "type"; val: string }> =
|
const vars: Record<
|
||||||
{};
|
string,
|
||||||
|
{
|
||||||
|
mode: "local" | "prop" | "type";
|
||||||
|
val: string;
|
||||||
|
}
|
||||||
|
> = {};
|
||||||
let m_prev = null;
|
let m_prev = null;
|
||||||
|
|
||||||
const comp_types = {} as Record<string, string>;
|
const comp_types = {} as Record<string, string>;
|
||||||
|
|
|
||||||
|
|
@ -28,6 +28,7 @@ export const w = window as unknown as {
|
||||||
navigateOverride: (s: string) => string;
|
navigateOverride: (s: string) => string;
|
||||||
isDesktop: boolean;
|
isDesktop: boolean;
|
||||||
prasiApi: Record<string, PrasiAPI>;
|
prasiApi: Record<string, PrasiAPI>;
|
||||||
|
prasiContext: { render: () => void; renderEditor: () => void };
|
||||||
loadedFonts: string[];
|
loadedFonts: string[];
|
||||||
prasiApiDbPull: boolean;
|
prasiApiDbPull: boolean;
|
||||||
mobile?: any;
|
mobile?: any;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue