Fix 'Open front page' keybind in Tampermonkey.

This commit is contained in:
ccd0 2017-11-16 02:27:08 -08:00
parent 2ac4924cf4
commit 95cc4321c2

View File

@ -132,7 +132,7 @@ Keybinds =
else else
window.location = "/#{g.BOARD}/" window.location = "/#{g.BOARD}/"
when Conf['Open front page'] when Conf['Open front page']
$.open "/#{g.BOARD}/" $.open "#{location.origin}/#{g.BOARD}/"
when Conf['Next page'] when Conf['Next page']
return unless g.VIEW is 'index' and g.BOARD.ID isnt 'f' return unless g.VIEW is 'index' and g.BOARD.ID isnt 'f'
if Conf['JSON Index'] if Conf['JSON Index']