Added a bit of error handling for weird equipment error we were seeing.
This commit is contained in:
parent
54f56162e9
commit
a700b7844f
1 changed files with 4 additions and 1 deletions
|
@ -27,7 +27,10 @@ module.exports = class LevelChatView extends CocoView
|
||||||
|
|
||||||
updateMultiplayerVisibility: ->
|
updateMultiplayerVisibility: ->
|
||||||
return unless @$el?
|
return unless @$el?
|
||||||
@$el.toggle Boolean @session.get('multiplayer')
|
try
|
||||||
|
@$el.toggle Boolean @session.get('multiplayer')
|
||||||
|
catch e
|
||||||
|
console.error "Couldn't toggle the style on the LevelChatView to #{Boolean @session.get('multiplayer')} because of an error:", e
|
||||||
|
|
||||||
afterRender: ->
|
afterRender: ->
|
||||||
@chatTables = $('table', @$el)
|
@chatTables = $('table', @$el)
|
||||||
|
|
Reference in a new issue