Add everything for accounts
This commit is contained in:
@@ -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(){
|
||||
|
||||
Reference in New Issue
Block a user