mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-24 21:13:35 -04:00
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue