Posts: 236
Threads: 31
Joined: May 2018
Reputation:
1
Hi,
Is there any way to get or update data from storage in JavaScript.
In lua:
storage.set
storage.get
Thanks
Posts: 7204
Threads: 39
Joined: Jun 2015
Reputation:
412
There's no direct support for storage functions in Custom JS. You would need to create a separate .lp to handle this. Or you can use a 250-byte text object if your storage data is short.
Posts: 105
Threads: 13
Joined: Nov 2019
Reputation:
6
You can use the local storage in Javascript: localStorage.setItem(myItem, myValue);
But as the name already says it's only local (clientside).