Move enabled check to beginning of init. #2282

This commit is contained in:
ccd0 2019-07-06 14:35:25 -07:00
parent 6279d4e434
commit 9697aa94f1

View File

@ -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'