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

Function launchSplash

src/splash/index.js:61–73  ·  view source on GitHub ↗
(startMin)

Source from the content-addressed store, hash-verified

59
60
61const launchSplash = (startMin) => {
62 win = require('../utils/win')({
63 width: 300,
64 height: process.platform === 'darwin' ? 300 : 350
65 }, 'splash');
66
67 if (process.platform !== 'darwin') win.on('closed', () => !launched && app.quit());
68
69 ipcMain.on('ss', launchMain);
70 ipcMain.on('sq', app.quit);
71
72 if (!startMin) win.once('ready-to-show', win.show);
73};
74
75
76const events = exports.events = new (require('events').EventEmitter)();

Callers 1

index.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected