arianne / stendhal

Stendhal is a fun friendly and free multiplayer online adventure game with an old school feel.
https://arianne-project.org
GNU General Public License v2.0
599 stars 201 forks source link

Use Session to Manage Configuration in Web Client #650

Closed AntumDeluge closed 9 months ago

AntumDeluge commented 9 months ago

💡 Describe your idea

Currently the web client's user interface is directly managed by localstorage. This means that changing any setting affects all instances of the client open in the same browser. An example is having multiple clients open in browser tabs then muting sound in one tab. Sound becomes muted in all tabs. It would be better to manage it with sessionstorage & implement sessionstorage to update with configuration changes to localstorage. This would theoretically allow for changes without affecting other open sessions. It would be better to manage it in active memory.

🔬 Motivation

There is good reason for wanting to make temporary configuration changes without affecting all open sessions.