summaryrefslogtreecommitdiff
path: root/dino/js/main.js
diff options
context:
space:
mode:
authors1n <[email protected]>2019-09-30 14:20:23 -0700
committerGitHub <[email protected]>2019-09-30 14:20:23 -0700
commitf702e869ed269b434a08aa84a91cd479850c476a (patch)
treebf40aecaa6c94752ed43b23ca08f19ce83a9bc17 /dino/js/main.js
parentcreate backup (diff)
downloads1n.pw-admin-f702e869ed269b434a08aa84a91cd479850c476a.tar.xz
s1n.pw-admin-f702e869ed269b434a08aa84a91cd479850c476a.zip
test local storage
Diffstat (limited to 'dino/js/main.js')
-rw-r--r--dino/js/main.js4
1 files 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
+