Fix sidebar js errors after close

This commit is contained in:
shortcutme 2016-08-15 13:56:43 +02:00
parent 92e4dd64d1
commit 0b1ef00077
2 changed files with 6 additions and 7 deletions

View file

@ -388,10 +388,9 @@ class Sidebar extends Class
@globe.animate()
catch e
console.log "WebGL error", e
if @tag
@tag.find(".globe").addClass("error").text("WebGL not supported")
@tag?.find(".globe").addClass("error").text("WebGL not supported")
@tag.find(".globe").removeClass("loading")
@tag?.find(".globe").removeClass("loading")
unloadGlobe: =>