Posts: 237
Threads: 31
Joined: May 2018
Reputation:
2
Hi,
Is there any way to get or update data from storage in JavaScript.
In lua:
storage.set
storage.get
Thanks
Posts: 7839
Threads: 42
Joined: Jun 2015
Reputation:
450
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: 113
Threads: 15
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).
Posts: 237
Threads: 31
Joined: May 2018
Reputation:
2
Is there any way to do this now?
Get or update data from Logic Machine storage by JavaScript.
In lua:
storage.set
storage.get
Thanks
Posts: 7839
Threads: 42
Joined: Jun 2015
Reputation:
450
No changes in this regard.