We don't really need these checks.
This commit is contained in:
parent
ad80f0f815
commit
d8cca06b3d
@ -1,6 +1,6 @@
|
||||
Gallery =
|
||||
init: ->
|
||||
return if not (@enabled = Conf['Gallery'] and g.VIEW in ['index', 'thread'] and g.BOARD.ID isnt 'f')
|
||||
return if not (@enabled = Conf['Gallery'] and g.VIEW in ['index', 'thread'])
|
||||
|
||||
@delay = Conf['Slide Delay']
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
ImageExpand =
|
||||
init: ->
|
||||
return if not (@enabled = Conf['Image Expansion'] and g.VIEW in ['index', 'thread'] and g.BOARD.ID isnt 'f')
|
||||
return if not (@enabled = Conf['Image Expansion'] and g.VIEW in ['index', 'thread'])
|
||||
|
||||
@EAI = $.el 'a',
|
||||
className: 'expand-all-shortcut fa fa-expand'
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
ImageLoader =
|
||||
init: ->
|
||||
return unless g.VIEW in ['index', 'thread', 'archive'] and g.BOARD.ID isnt 'f'
|
||||
return unless g.VIEW in ['index', 'thread', 'archive']
|
||||
return unless Conf['Image Prefetching'] or
|
||||
Conf['Replace JPG'] or Conf['Replace PNG'] or Conf['Replace GIF'] or Conf['Replace WEBM']
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
Metadata =
|
||||
init: ->
|
||||
return unless Conf['WEBM Metadata'] and g.VIEW in ['index', 'thread'] and g.BOARD.ID isnt 'f'
|
||||
return unless Conf['WEBM Metadata'] and g.VIEW in ['index', 'thread']
|
||||
|
||||
Callbacks.Post.push
|
||||
name: 'WEBM Metadata'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user