xpenatan / gdx-teavm

Run Libgdx in a webbrowser with teavm
Apache License 2.0
107 stars 16 forks source link

Storage Prefix to TeaApplicationConfiguration #94

Closed noblemaster closed 1 year ago

noblemaster commented 1 year ago

I found a problem when having multiple webapps on the same server (e.g. on itch.io). The data for TeaPreferences and TeaFileHandle is all shared if the domain URL is the same.

If you have multiple apps on the same server and want to keep the data separate for those applications, you will need to set unique prefixes via storagePrefix. This is useful if you are e.g. uploading multiple webapps to itch.io and want to keep the data separate for each application.

noblemaster commented 1 year ago

I don't think this unsuccessful error check is related to the changes!?