ZoeBijl / airlinesim-enhancement-suite

Enhancement suite for the popular airlinesim.aero game.
MIT License
5 stars 2 forks source link

Store airline information in local storage #18

Open ZoeBijl opened 5 months ago

ZoeBijl commented 5 months ago

The player’s airline name and code should be saved in local storage; that way it’s accessible from every page.

There’s a helper in helpers.js that could be modified to allow this.

RobertFridolin commented 4 months ago

Saving in local storage does not work if you have more than one airline and you start not on the dashboard (via bookmark for example). I added getAirlineName() to AES-class, getAirlineCode() should no longer be used.

ZoeBijl commented 4 months ago

that’s a good point about the multiple airlines, perhaps this issue can be closed