Skip to content

Equivalent to localStorage.setItem and localStorage.getItem? #74

Answered by pmp-p
Hechelion asked this question in Q&A
Discussion options

You must be logged in to vote

There's no equivalent but you can add fencing and access localStorage directly from javascript namespace like here https://pygame-web.github.io/wiki/pygbag-code/#handling-persistent-data-across-sessions.
Using utf-8 json for str value should allow saving quite a lot of information.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Hechelion
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants