Made the ladder tab better able to handle unloaded gplus and facebook apis.
This commit is contained in:
parent
092810eba2
commit
37beb1bc6b
1 changed files with 2 additions and 2 deletions
|
@ -35,10 +35,10 @@ module.exports = class LadderTabView extends CocoView
|
|||
@teams = teamDataFromLevel @level
|
||||
@leaderboards = {}
|
||||
@refreshLadder()
|
||||
@checkFriends() if window.FB and window.gapi
|
||||
@checkFriends()
|
||||
|
||||
checkFriends: ->
|
||||
return if @checked
|
||||
return if @checked or (not window.FB) or (not window.gapi)
|
||||
@checked = true
|
||||
|
||||
@loadingFacebookFriends = true
|
||||
|
|
Reference in a new issue