From b9f7954fb6516d08b21ed7a40d513b69a9bcd04d Mon Sep 17 00:00:00 2001 From: Jaifroid Date: Fri, 26 Jul 2019 18:17:28 +0100 Subject: [PATCH] Re-enable cookies Former-commit-id: 25b2207475619160815fef461f8b93a02a22a181 [formerly 00fbba937922d6088e59eaf28289f15c11320357] Former-commit-id: 95f65a41c6844cf39660a66ef09dcb002b12a419 --- main.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/main.js b/main.js index 63af0bcd..44f4dc5d 100644 --- a/main.js +++ b/main.js @@ -32,8 +32,9 @@ function createWindow() { }); // and load the index.html of the app. - // mainWindow.loadURL('app://www/index.html'); - mainWindow.loadFile('www/index.html'); + mainWindow.loadURL('app://www/index.html'); + // DEV: If you need Service Worker more than you need document.cookie, load app like this: + // mainWindow.loadFile('www/index.html'); // DEV: Enable code below to check cookies saved by app in console log // mainWindow.webContents.on('did-finish-load', function() { // mainWindow.webContents.session.cookies.get({}, (error, cookies) => {