Move enabled check to beginning of init. #2282
This commit is contained in:
parent
6279d4e434
commit
9697aa94f1
@ -1,16 +1,15 @@
|
|||||||
PostJumper =
|
PostJumper =
|
||||||
init: ->
|
init: ->
|
||||||
|
return unless Conf['Unique ID and Capcode Navigation'] and g.VIEW in ['index', 'thread']
|
||||||
|
|
||||||
@capcode = Object.create(null)
|
@capcode = Object.create(null)
|
||||||
@uniqueID = Object.create(null)
|
@uniqueID = Object.create(null)
|
||||||
return unless g.VIEW in ['index', 'thread']
|
|
||||||
|
|
||||||
Callbacks.Post.push
|
Callbacks.Post.push
|
||||||
name: 'Post Jumper'
|
name: 'Post Jumper'
|
||||||
cb: @node
|
cb: @node
|
||||||
|
|
||||||
node: ->
|
node: ->
|
||||||
return unless Conf['Unique ID and Capcode Navigation']
|
|
||||||
|
|
||||||
if @nodes.uniqueIDRoot and not @isClone
|
if @nodes.uniqueIDRoot and not @isClone
|
||||||
PostJumper.addButtons @,'uniqueID'
|
PostJumper.addButtons @,'uniqueID'
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user