nwjs/nw.js

LocalStorage reload failure

Opened this issue · 0 comments

Issue Type

Before opening an issue, please search and see if it has already been raised.

  • Bug Report

  • Feature Request

  • Successfully reproduced against the latest version of NW.js?

Current/Missing Behavior

When restarting using window.chrome.runtime.reload(), for applications under load, global.localStorage and global.window.localStorage are undefined and cannot be set. If you do a full stop and start of the application, then it works again.
I use const store = require('store');
This behavior did not seem to happen in 0.91.0.

Expected/Proposed Behavior

When restarting the application using window.chrome.runtime.reload(), global.localStorage and global.window.localStorage should be defined.

Additional Info

  • Operating System: Windows
  • NW.js Version: 0.93.0