darwin lol

This commit is contained in:
Damillora 2017-07-04 00:02:52 +07:00
parent 74045a0414
commit 6a53c26cc5

17
main.js
View File

@ -39,11 +39,18 @@ ipc.on('log-out',function(){
win.webContents.session.clearStorageData({storages: "cookies"});win.loadURL("http://pf.gree.net/58737",options); win.webContents.session.clearStorageData({storages: "cookies"});win.loadURL("http://pf.gree.net/58737",options);
}); });
// Quit when all windows are closed. app.on('window-all-closed', function () {
app.on('window-all-closed', () => { // On OS X it is common for applications and their menu bar
// On macOS it is common for applications and their menu bar
// to stay active until the user quits explicitly with Cmd + Q // to stay active until the user quits explicitly with Cmd + Q
//if (process.platform !== 'darwin') { if (process.platform !== 'darwin') {
app.quit() app.quit()
//} }
})
app.on('activate', function () {
// On OS X it's common to re-create a window in the app when the
// dock icon is clicked and there are no other windows open.
if (mainWindow === null) {
createWindow()
}
}) })