about node-webkit localstorage

5 views
Skip to first unread message

gao bubu

unread,
Mar 14, 2013, 8:47:50 PM3/14/13
to node-...@googlegroups.com

node-webkit localStorage.setItem ('test', 'xxx'), but when I close the window when it is opened, saved data are gone, and why?

Chaobin Zhang

unread,
Mar 14, 2013, 11:28:01 PM3/14/13
to node-...@googlegroups.com
Hi, which kind of package method do you use? And on which platform do you meet this problem? 
It is ok on my side. On Windows 7 x64 and Ubuntu 12.10 32. 


On Fri, Mar 15, 2013 at 8:47 AM, gao bubu <gaoh...@gmail.com> wrote:

node-webkit localStorage.setItem ('test', 'xxx'), but when I close the window when it is opened, saved data are gone, and why?

--
You received this message because you are subscribed to the Google Groups "node-webkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-webkit...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
------------------
Best Regards 

----------------------------------------------------------------
@zhchbin Chaobin Zhang (张朝滨)

gao bubu

unread,
Mar 15, 2013, 3:29:36 AM3/15/13
to node-...@googlegroups.com
node-webkit 0.4.1 node v0.8.20 ubuntu12.10 

after "localStorage.setItem ('test', 'xxx')", when reopen app, data lost.

Chaobin Zhang

unread,
Mar 15, 2013, 5:16:35 AM3/15/13
to node-...@googlegroups.com
I use nw 0.4.1 and 0.4.2 for test, both of them work on my side. (ubuntu 12.10)

gao bubu

unread,
Mar 15, 2013, 11:37:46 PM3/15/13
to node-...@googlegroups.com
ok, let me try again, then report

aleksand...@gmail.com

unread,
Mar 28, 2013, 4:43:49 PM3/28/13
to node-...@googlegroups.com
did you solve this problem? I have the same on win7(x32)+nodewebkit 0.4.2

пятница, 15 марта 2013 г., 2:47:50 UTC+2 пользователь gao bubu написал:

Jeff K

unread,
Mar 28, 2013, 4:49:32 PM3/28/13
to node-...@googlegroups.com, aleksand...@gmail.com
I am relatively new to this but I have just been doing this:

localStorage.test = 'xxx'

vs 

localStorage.setItem ('test', 'xxx')

Reply all
Reply to author
Forward
0 new messages