Avoid needless running of Embedding.init.

This commit is contained in:
ccd0 2016-11-26 18:49:27 -08:00
parent a55683b352
commit 6e62b3bec9

View File

@ -1,6 +1,6 @@
Embedding =
init: ->
return unless Conf['Embedding'] or Conf['Link Title'] or Conf['Cover Preview']
return unless g.VIEW in ['index', 'thread'] and Conf['Linkify'] and (Conf['Embedding'] or Conf['Link Title'] or Conf['Cover Preview'])
@types = {}
@types[type.key] = type for type in @ordered_types