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

Function initGlobal

frontend/app/store/global.ts:42–53  ·  view source on GitHub ↗
(initOpts: GlobalInitOptions)

Source from the content-addressed store, hash-verified

40let globalPrimaryTabStartup: boolean = false;
41
42function initGlobal(initOpts: GlobalInitOptions) {
43 globalPrimaryTabStartup = initOpts.primaryTabStartup ?? false;
44 setPlatform(initOpts.platform);
45 initGlobalAtoms(initOpts);
46 try {
47 getApi().onMenuItemAbout(() => {
48 modalsModel.pushModal("AboutModal");
49 });
50 } catch (e) {
51 console.log("failed to initialize onMenuItemAbout handler", e);
52 }
53}
54
55function initGlobalWaveEventSubs(initOpts: WaveInitOpts) {
56 waveEventSubscribeSingle({

Callers 2

initWaveFunction · 0.90
initBuilderFunction · 0.90

Calls 3

setPlatformFunction · 0.90
initGlobalAtomsFunction · 0.90
getApiFunction · 0.70

Tested by

no test coverage detected