Harry de Boer 6 лет назад
Родитель
Сommit
3849e872b1
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      src/main/resources/static/main.js

+ 2 - 2
src/main/resources/static/main.js

@@ -14,7 +14,7 @@ class Puzzeltocht {
         this.missionScreen = new MissionScreen();
         this.missionScreen.setAnswerListener(e => this.answer(e));
         this.location = new LocationApi();
-        this.location.enable(p => this.updateLocation(p))
+        this.location.enable(p => this.updateLocation(p));
         console.log("puzzeltocht initialised");
     }
 
@@ -233,7 +233,7 @@ class Location {
 
     string() {
         return "(" + this.lat() + ", " + this.lon() + ")"
-        + " +-" + this.accuracy() + "m, " + this.age() + "s geleden"
+        + " +-" + this.accuracy() + "m, " + Date.now() + " " + this.pos.timestamp + "s geleden"
     }
 }