History

Fix error in $.popup

Thibaut Courouble committed 9 years ago

Commit f9a456c1 parent 2cef32d1 file · +3 −3Browse files

Unified · Split

assets/javascripts/lib/util.coffee+3−3
@@ -329,11 +329,11 @@ $.requestAnimationFrame = (fn) -> · 328 unmodified lines
329329 $.noop = ->
330330
331331 $.popup = (value) ->
332− win = window.open()
333− if win
332+ try
333+ win = window.open()
334334 win.opener = null if win.opener
335335 win.location = value.href or value
336− else
336+ catch
337337 window.open value.href or value, '_blank'
338338 return
339339