only start c3nav code after the api is authenticated, to ensure we get corect results (should fix #128)
This commit is contained in:
parent
81e159047a
commit
50af5328e5
1 changed files with 3 additions and 1 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue