From 635fbaa377cb973fdc4d970d7700bf3bf56167dc Mon Sep 17 00:00:00 2001 From: Zixaphir Date: Sat, 8 Mar 2014 16:44:54 -0700 Subject: [PATCH] Handle current page links a bit more elegantly --- src/General/Navigate.coffee | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/General/Navigate.coffee b/src/General/Navigate.coffee index 5ba1d48e1..2f323083c 100644 --- a/src/General/Navigate.coffee +++ b/src/General/Navigate.coffee @@ -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