Update Save.js
This commit is contained in:
+1
-1
@@ -3,7 +3,7 @@ export class Save {
|
||||
let localID = localStorage.getItem("id")
|
||||
this.id = 0
|
||||
let now = new Date()
|
||||
this.name = now.getFullYear() + "." + (now.getMonth() + 1)+ "." + now.getDate() + "-" + now.getHours() + "h" + now.getMinutes() + "-" + now.getSeconds() + "s"
|
||||
this.name = now.getFullYear() + "." + (now.getMonth() + 1)+ "." + now.getDate() + "-" + now.getHours() + ":" + now.getMinutes() + ":" + now.getSeconds()
|
||||
if(localID !== null) {
|
||||
this.id = parseInt(localID) + 1
|
||||
localStorage.setItem("id", this.id)
|
||||
|
||||
Reference in New Issue
Block a user