MCPcopy
hub / github.com/wavetermdev/waveterm / initWaveWrap

Function initWaveWrap

frontend/wave.ts:80–96  ·  view source on GitHub ↗
(initOpts: WaveInitOpts)

Source from the content-addressed store, hash-verified

78document.addEventListener("DOMContentLoaded", initBare);
79
80async function initWaveWrap(initOpts: WaveInitOpts) {
81 try {
82 if (savedInitOpts) {
83 await reinitWave();
84 return;
85 }
86 savedInitOpts = initOpts;
87 await initWave(initOpts);
88 } catch (e) {
89 getApi().sendLog("Error in initWave " + e.message + "\n" + e.stack);
90 console.error("Error in initWave", e);
91 } finally {
92 document.body.style.visibility = null;
93 document.body.style.opacity = null;
94 document.body.classList.remove("is-transparent");
95 }
96}
97
98async function reinitWave() {
99 console.log("Reinit Wave");

Callers

nothing calls this directly

Calls 3

getApiFunction · 0.90
reinitWaveFunction · 0.85
initWaveFunction · 0.85

Tested by

no test coverage detected