This commit is contained in:
Mayhem 2013-06-10 17:25:15 +02:00
parent 598bbb8274
commit 029a2dac2c

View File

@ -55,7 +55,7 @@ Main =
URL = Redirect.to 'file', URL = Redirect.to 'file',
boardID: g.BOARD.ID boardID: g.BOARD.ID
filename: pathname[pathname.length - 1] filename: pathname[pathname.length - 1]
location.href = URL if URL location.replace URL if URL
return return
initFeature = (name, module) -> initFeature = (name, module) ->
@ -170,7 +170,7 @@ Main =
boardID: g.BOARD.ID boardID: g.BOARD.ID
threadID: g.THREADID threadID: g.THREADID
postID: +location.hash.match /\d+/ # post number or 0 postID: +location.hash.match /\d+/ # post number or 0
location.href = href or "/#{g.BOARD}/" location.replace href or "/#{g.BOARD}/"
return return
unless $.hasClass doc, 'fourchan-x' unless $.hasClass doc, 'fourchan-x'