We don't really need these checks.
This commit is contained in:
parent
ad80f0f815
commit
d8cca06b3d
@ -1,6 +1,6 @@
|
|||||||
Gallery =
|
Gallery =
|
||||||
init: ->
|
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']
|
@delay = Conf['Slide Delay']
|
||||||
|
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
ImageExpand =
|
ImageExpand =
|
||||||
init: ->
|
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',
|
@EAI = $.el 'a',
|
||||||
className: 'expand-all-shortcut fa fa-expand'
|
className: 'expand-all-shortcut fa fa-expand'
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
ImageLoader =
|
ImageLoader =
|
||||||
init: ->
|
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
|
return unless Conf['Image Prefetching'] or
|
||||||
Conf['Replace JPG'] or Conf['Replace PNG'] or Conf['Replace GIF'] or Conf['Replace WEBM']
|
Conf['Replace JPG'] or Conf['Replace PNG'] or Conf['Replace GIF'] or Conf['Replace WEBM']
|
||||||
|
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
Metadata =
|
Metadata =
|
||||||
init: ->
|
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
|
Callbacks.Post.push
|
||||||
name: 'WEBM Metadata'
|
name: 'WEBM Metadata'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user