From 576a223fc8085017f815c477868b01673a6446f0 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Mon, 22 Jul 2019 18:36:18 -0700 Subject: [PATCH] Make catalog keybind work on /f/. --- src/Miscellaneous/Keybinds.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Miscellaneous/Keybinds.coffee b/src/Miscellaneous/Keybinds.coffee index 2db3006ea..f2b043a66 100644 --- a/src/Miscellaneous/Keybinds.coffee +++ b/src/Miscellaneous/Keybinds.coffee @@ -170,8 +170,8 @@ Keybinds = return unless Index.enabledOn(g.BOARD) location.href = if g.VIEW is 'index' then '#all-pages' else "/#{g.BOARD}/#all-pages" when Conf['Open catalog'] - return if g.BOARD.ID is 'f' - location.href = CatalogLinks.catalog() + return unless (catalog = CatalogLinks.catalog()) + location.href = catalog when Conf['Cycle sort type'] return unless Index.enabled Index.cycleSortType()