Bugfix: Don't add embedding window to error pages.

This commit is contained in:
ccd0 2016-11-04 16:59:38 -07:00
parent 0ae3a3e8d6
commit 67bf57d804

View File

@ -65,6 +65,7 @@ Embedding =
$.on d, 'PostsInserted', autoEmbed
ready: ->
return if !Main.isThisPageLegit()
$.addClass Embedding.dialog, 'empty'
$.on $('.close', Embedding.dialog), 'click', Embedding.closeFloat
$.on $('.move', Embedding.dialog), 'mousedown', Embedding.dragEmbed