Close #1147.
This commit is contained in:
parent
598bbb8274
commit
029a2dac2c
@ -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'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user