We don't really need these checks.

This commit is contained in:
ccd0 2018-01-24 07:03:39 -08:00
parent ad80f0f815
commit d8cca06b3d
4 changed files with 4 additions and 4 deletions

View File

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

View File

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

View File

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

View File

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