Re-enable cookies

Former-commit-id: 25b2207475619160815fef461f8b93a02a22a181 [formerly 00fbba937922d6088e59eaf28289f15c11320357]
Former-commit-id: 95f65a41c6844cf39660a66ef09dcb002b12a419
This commit is contained in:
Jaifroid 2019-07-26 18:17:28 +01:00
parent a4d78bc10d
commit b9f7954fb6

View File

@ -32,8 +32,9 @@ function createWindow() {
}); });
// and load the index.html of the app. // and load the index.html of the app.
// mainWindow.loadURL('app://www/index.html'); mainWindow.loadURL('app://www/index.html');
mainWindow.loadFile('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 // DEV: Enable code below to check cookies saved by app in console log
// mainWindow.webContents.on('did-finish-load', function() { // mainWindow.webContents.on('did-finish-load', function() {
// mainWindow.webContents.session.cookies.get({}, (error, cookies) => { // mainWindow.webContents.session.cookies.get({}, (error, cookies) => {