Avoid needless running of Embedding.init.
This commit is contained in:
parent
a55683b352
commit
6e62b3bec9
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user