Skip to content

Commit

Permalink
Remove all listener when closed main window
Browse files Browse the repository at this point in the history
  • Loading branch information
kphrx committed Apr 5, 2019
1 parent c524777 commit f5afafe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ function createWindow() {
}
// ウィンドウが閉じられたらアプリも終了
mainWindow.on('closed', function() {
electron.ipcMain.removeAllListeners();
mainWindow = null;
});
mainWindow.on('close', function() {
Expand Down

0 comments on commit f5afafe

Please sign in to comment.