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

View File

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

View File

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

View File

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