Harry de Boer преди 6 години
родител
ревизия
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"
     }
 }