mirror of
https://github.com/kiwix/kiwix-js-pwa.git
synced 2025-09-10 12:53:54 -04:00
Re-enable cookies
Former-commit-id: 25b2207475619160815fef461f8b93a02a22a181 [formerly 00fbba937922d6088e59eaf28289f15c11320357] Former-commit-id: 95f65a41c6844cf39660a66ef09dcb002b12a419
This commit is contained in:
parent
a4d78bc10d
commit
b9f7954fb6
5
main.js
5
main.js
@ -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) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user