Handle current page links a bit more elegantly

This commit is contained in:
Zixaphir 2014-03-08 16:44:54 -07:00 committed by ccd0
parent 8d52da3a32
commit 635fbaa377

View File

@ -154,7 +154,13 @@ Navigate =
navigate: (e) ->
return if @hostname isnt 'boards.4chan.org' or window.location.hostname is 'rs.4chan.org'
return if e and (e.shiftKey or e.ctrlKey or (e.type is 'click' and e.button isnt 0)) # Not simply a left click
if @pathname is Navigate.path
if g.VIEW is 'thread'
ThreadUpdater.update()
else
Index.update()
e.preventDefault()
return