Fix WebGL error after sidebar close

This commit is contained in:
ZeroNet 2016-08-10 12:53:31 +02:00
parent 131a51fbdc
commit b33499b7b5
1 changed files with 2 additions and 1 deletions

View File

@ -388,7 +388,8 @@ class Sidebar extends Class
@globe.animate()
catch e
console.log "WebGL error", e
@tag.find(".globe").addClass("error").text("WebGL not supported")
if @tag
@tag.find(".globe").addClass("error").text("WebGL not supported")
@tag.find(".globe").removeClass("loading")