You can also use localstorage/indexeddb and keep syncing it with a script element of type text/json. On-load, see if localstorage is gone (different browser, domain, etc.) and restore from the script element if that's the case.
I explicitly do not want such a thing in many of my HTML-apps, but one could add it with relative ease.
I explicitly do not want such a thing in many of my HTML-apps, but one could add it with relative ease.