mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-24 14:27:58 -05:00
Fix js.py module loading to use PluginLoader.
Fixes issue where js.py wasn't initializing Plugins with an entry_point argument after the entry_point property was added.
This commit is contained in:
@@ -321,9 +321,8 @@ def use(*names):
|
||||
|
||||
def load_plugin_modules():
|
||||
from r2.lib.plugin import PluginLoader
|
||||
for plugin in PluginLoader.available_plugins():
|
||||
plugin_cls = plugin.load()
|
||||
plugin_cls().add_js(module)
|
||||
for plugin in PluginLoader():
|
||||
plugin.add_js(module)
|
||||
|
||||
commands = {}
|
||||
def build_command(fn):
|
||||
|
||||
Reference in New Issue
Block a user