Move enabled check to beginning of init. #2282
This commit is contained in:
parent
6279d4e434
commit
9697aa94f1
@ -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'
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user