Skip to content
This repository has been archived by the owner on Jan 9, 2019. It is now read-only.

Commit

Permalink
Refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
alexstep committed Sep 26, 2017
1 parent 545be8a commit 94e514c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 7 additions & 2 deletions src/app.client.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@ document.addEventListener('DOMContentLoaded',()=>{
window.DiceGameChannel = DiceGameChannel

if (process.env.APP_BUILD_FOR_WINSERVER) {
setTimeout(()=>{
this.startChannelsGames()
}, 1500)
setTimeout(()=>{
Games.startMesh()
Games.startChannelsGames()
}, 5000)
}, 3000)
return
}

Expand All @@ -27,6 +29,9 @@ document.addEventListener('DOMContentLoaded',()=>{
window.App.view = view
window.Games = Games

setTimeout(()=>{
this.startChannelsGames()
}, 1500)
setTimeout(()=>{
Games.startMesh()
}, 3000)
Expand Down
2 changes: 0 additions & 2 deletions src/model/games.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@ class Games {
}

startMesh(){
this.startChannelsGames()

let user_id = Eth.Wallet.get().openkey || false
this.RTC = new Rtc(user_id)

Expand Down

0 comments on commit 94e514c

Please sign in to comment.