pack: add .editorconfig and use tab instead of space

This commit is contained in:
leejooy96 committed 2022-10-29 12:35:12 +09:00
1 parent be3638b9d3
commit be7a8ac3ea
27 files changed
+571 -560

No files matched your search

+15 -15
View File
@@ -7,33 +7,33 @@ let mainWindow
let errorWindow
app.on('ready', () => {
macOSDisableDefaultMenuItem()
macOSDisableDefaultMenuItem()
mainWindow = createMainWindow(mainWindow)
mainWindow = createMainWindow(mainWindow)
})
app.on('activate', () => {
if (!mainWindow) {
mainWindow = createMainWindow(mainWindow)
}
if (!mainWindow) {
mainWindow = createMainWindow(mainWindow)
}
})
app.on('window-all-closed', () => {
mainWindow = null
errorWindow = null
mainWindow = null
errorWindow = null
if (!Constants.IS_MAC) {
app.quit()
}
if (!Constants.IS_MAC) {
app.quit()
}
})
app.on(
'render-process-gone',
(event: Event, webContents: WebContents, details: RenderProcessGoneDetails) => {
errorWindow = createErrorWindow(errorWindow, mainWindow, details)
}
'render-process-gone',
(event: Event, webContents: WebContents, details: RenderProcessGoneDetails) => {
errorWindow = createErrorWindow(errorWindow, mainWindow, details)
}
)
process.on('uncaughtException', () => {
errorWindow = createErrorWindow(errorWindow, mainWindow)
errorWindow = createErrorWindow(errorWindow, mainWindow)
})