diff --git a/main.js b/main.js index 9825d33..d108dbc 100644 --- a/main.js +++ b/main.js @@ -48,6 +48,13 @@ const createWindow = () => { }, }); + // Block computer swipe + win.setHasShadow(false); + localShortcut.register(win, 'Left', () => {}); + localShortcut.register(win, 'Right', () => {}); + localShortcut.register(win, 'Up', () => {}); + localShortcut.register(win, 'Down', () => {}); + win.loadFile("index.html"); isDev && win.webContents.openDevTools(); return win; @@ -89,12 +96,6 @@ app.whenReady().then(() => { if (BrowserWindow.getAllWindows().length === 0) createWindow(); }); - // Block computer swipe - localShortcut.register(mainApp, 'Left', () => {}); - localShortcut.register(mainApp, 'Right', () => {}); - localShortcut.register(mainApp, 'Up', () => {}); - localShortcut.register(mainApp, 'Down', () => {}); - // Update app updateInterval = setInterval(() => autoUpdater.checkForUpdates(), 600000); diff --git a/package.json b/package.json index e497f16..a907b50 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "jobibox", - "version": "1.0.3", + "version": "1.0.4", "description": "La cabine accoustique pour créer un cv vidéo", "repository": "https://github.com/EvilSpartans/JobiBox", "main": "main.js",