(startMin)
| 59 | |
| 60 | |
| 61 | const 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 | |
| 76 | const events = exports.events = new (require('events').EventEmitter)(); |