Add everything for accounts

This commit is contained in:
LoveEevee
2020-03-13 05:34:54 +03:00
parent 47545e9da9
commit 2af924a985
21 changed files with 1291 additions and 146 deletions

View File

@@ -3,6 +3,7 @@ class P2Connection{
this.closed = true
this.lastMessages = {}
this.otherConnected = false
this.name = null
this.allEvents = new Map()
this.addEventListener("message", this.message.bind(this))
this.currentHash = ""
@@ -123,6 +124,7 @@ class P2Connection{
this.hash("")
this.hashLock = false
}
this.name = null
break
case "gameresults":
this.results = {}
@@ -151,6 +153,9 @@ class P2Connection{
this.otherConnected = true
this.session = true
break
case "name":
this.name = (response.value || "").toString() || null
break
}
}
onhashchange(){