You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have not seen this for a very long time. I've refactored the code to make a more "soft" close, by running everything and then calling this.close(true);
I'm also trying to use as little nw.js code as possible an rely only on native web API's, so that I can run my app entirely in the browser.
I'm using this code:
https://github.com/nwjs/nw.js/wiki/Preserve-window-state-between-sessions
But sometimes the localStorage is null!
localStorage works fine until hitting the close button in windows (to close the app).
Then sometimes the localStorage works and sometimes it's null.
Test code:
if(!localStorage) throw new Error("localStorage not available!");
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: