Skip to content

Commit 85a2d04

Browse files
authored
RELEASE v1.1.0 - FEATURES
- Way to exit without the use of task manager - Update checker
1 parent 92ba846 commit 85a2d04

8 files changed

Lines changed: 945 additions & 32 deletions

File tree

src/SummonerSpellTimer/main.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const path = require('path')
2-
const {app, BrowserWindow, Menu} = require('electron');
2+
const {app, ipcMain, BrowserWindow, Menu} = require('electron');
33

44
const isDev = process.env.NODE_ENV !== "production"
55
const isMac = process.platform === "darwin";
@@ -15,6 +15,8 @@ function createMainWindow() {
1515
frame: false,
1616
transparent: true,
1717
webPreferences: {
18+
nodeIntegration: true,
19+
contextIsolation: false,
1820
devTools: false
1921
}
2022
});
@@ -29,6 +31,10 @@ app.whenReady().then(() => {
2931
// Remove ugly ahh menu
3032
Menu.setApplicationMenu(null);
3133

34+
ipcMain.on("close", () => {
35+
app.quit();
36+
});
37+
3238
//create just in case :)
3339
app.on('activate', () => {
3440
if (BrowserWindow.getAllWindows().length === 0) {

src/SummonerSpellTimer/node_modules/modules.txt.txt

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)