Skip to content

Commit

Permalink
add mac support, v2.0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
SchneeHertz committed Sep 5, 2023
1 parent a867f52 commit 9093e57
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,16 @@ app.whenReady()
setInterval(() => mainWindow.webContents.send('send-status', STATUS), 1000)
})


app.on('activate', () => {
if (BrowserWindow.getAllWindows().length === 0) {
mainWindow = createWindow()
}
})
app.on('window-all-closed', () => {
app.quit()
if (process.platform !== 'darwin') {
app.quit()
}
})

/**
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "chat-xiuliu",
"private": true,
"version": "2.0.3",
"version": "2.0.5",
"scripts": {
"dev": "vite",
"build": "vite build",
Expand Down

0 comments on commit 9093e57

Please sign in to comment.