From f702e869ed269b434a08aa84a91cd479850c476a Mon Sep 17 00:00:00 2001 From: s1n Date: Mon, 30 Sep 2019 14:20:23 -0700 Subject: test local storage --- dino/js/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dino/js/main.js b/dino/js/main.js index 521b237..2f51216 100644 --- a/dino/js/main.js +++ b/dino/js/main.js @@ -31,7 +31,7 @@ this.distanceMeter = null; this.distanceRan = 0; - this.highestScore = 0; + localStorage.setItem(this.highestScore = 0) this.time = 0; this.runningTime = 0; @@ -2948,4 +2948,4 @@ } document.addEventListener("DOMContentLoaded", onDocumentLoad); - \ No newline at end of file + -- cgit v1.2.3