MCPcopy
hub / github.com/GooseMod/OpenAsar / destroySplash

Function destroySplash

src/splash/index.js:31–41  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

29exports.pageReady = () => destroySplash() || process.nextTick(() => events.emit('APP_SHOULD_SHOW'));
30
31const destroySplash = () => {
32 win?.setSkipTaskbar?.(true);
33
34 setTimeout(() => {
35 if (!win) return;
36
37 win.hide();
38 win.close();
39 win = null;
40 }, 100);
41};
42
43const launchMain = () => {
44 moduleUpdater.events.removeAllListeners(); // Remove updater v1 listeners

Callers 1

index.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected