From 9697aa94f1a21af884e9f66d93a78ec8d2c7b268 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sat, 6 Jul 2019 14:35:25 -0700 Subject: [PATCH] Move enabled check to beginning of init. #2282 --- src/Miscellaneous/PostJumper.coffee | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Miscellaneous/PostJumper.coffee b/src/Miscellaneous/PostJumper.coffee index d68e1dc62..e3d46d0a6 100644 --- a/src/Miscellaneous/PostJumper.coffee +++ b/src/Miscellaneous/PostJumper.coffee @@ -1,16 +1,15 @@ PostJumper = init: -> + return unless Conf['Unique ID and Capcode Navigation'] and g.VIEW in ['index', 'thread'] + @capcode = Object.create(null) @uniqueID = Object.create(null) - return unless g.VIEW in ['index', 'thread'] Callbacks.Post.push name: 'Post Jumper' cb: @node node: -> - return unless Conf['Unique ID and Capcode Navigation'] - if @nodes.uniqueIDRoot and not @isClone PostJumper.addButtons @,'uniqueID'