only start c3nav code after the api is authenticated, to ensure we get corect results (should fix #128)

This commit is contained in:
Gwendolyn 2023-12-20 15:00:25 +01:00
parent 81e159047a
commit 50af5328e5

View file

@ -1956,7 +1956,9 @@ c3nav = {
}
}
};
$(document).ready(c3nav.init);
$(document).ready(() => {
c3nav_api.authenticated().then(c3nav.init);
});
function nearby_stations_available() {
c3nav._wifi_scan_results(mobileclient.getNearbyStations());