|
@@ -33,9 +33,11 @@ export default class App {
|
|
|
|
|
|
this.hasVideoTexture = true
|
|
|
|
|
|
- this.init()
|
|
|
- this.bindEvents()
|
|
|
- setTimeout(() => this.bindSocketEvents(), 1000)
|
|
|
+ document.getElementById("enterBtn").onclick = () => {
|
|
|
+ this.init()
|
|
|
+ this.bindEvents()
|
|
|
+ setTimeout(() => this.bindSocketEvents(), 1000)
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
init() {
|