mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-05-04 01:43:40 -04:00
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: ->
|
||||
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: ->
|
||||
@chatTables = $('table', @$el)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue