INNER CODE UNIT · TypeScript
appReady
satoshipay/solar · electron/src/app.ts:25
const appReady = new Promise(resolve => app.on("ready", resolve))
app.on("ready", () => {
const menu = createAppMenu()
if (menu) {
Menu.setApplicationMenu(menu)
}
trackWindow(createMainWindow())
})
app.on("window-all-closed", () => {
// On macOS it is common for applications and their menu bar
// to stay active until the user quits explicitly with Cmd + Q
if (process.platform !== "darwin") {
app.quit()
}