Make Open Thread keybinds work on Tinyboard/vichan. #2171

This commit is contained in:
ccd0 2019-07-23 00:17:24 -07:00
parent 4649ae8a82
commit 32ad98a0d6

View File

@ -315,9 +315,9 @@ Keybinds =
open: (thread, tab) ->
return if g.VIEW isnt 'index'
url = "/#{thread.board}/thread/#{thread}"
url = Get.url 'thread', thread
if tab
$.open location.origin + url
$.open url
else
location.href = url