MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / initBare

Function initBare

frontend/wave.ts:59–76  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

57}
58
59async function initBare() {
60 getApi().sendLog("Init Bare");
61 document.body.style.visibility = "hidden";
62 document.body.style.opacity = "0";
63 document.body.classList.add("is-transparent");
64 getApi().onWaveInit(initWaveWrap);
65 getApi().onBuilderInit(initBuilderWrap);
66 setKeyUtilPlatform(platform);
67 loadFonts();
68 updateZoomFactor(getApi().getZoomFactor());
69 getApi().onZoomFactorChange((zoomFactor) => {
70 updateZoomFactor(zoomFactor);
71 });
72 document.fonts.ready.then(() => {
73 console.log("Init Bare Done");
74 getApi().setWindowInitStatus("ready");
75 });
76}
77
78document.addEventListener("DOMContentLoaded", initBare);
79

Callers

nothing calls this directly

Calls 4

getApiFunction · 0.90
setKeyUtilPlatformFunction · 0.90
loadFontsFunction · 0.90
updateZoomFactorFunction · 0.85

Tested by

no test coverage detected