mirror of
https://github.com/searxng/searxng.git
synced 2025-07-22 12:49:22 +02:00
[enh] add unique class for each endpoint - closes #1133
This commit is contained in:
parent
5af873b74e
commit
de1b08a941
5 changed files with 5 additions and 4 deletions
|
@ -425,6 +425,7 @@ def render(template_name, override_theme=None, **kwargs):
|
|||
kwargs['brand'] = brand
|
||||
|
||||
kwargs['scripts'] = set()
|
||||
kwargs['endpoint'] = 'results' if 'q' in kwargs else request.endpoint
|
||||
for plugin in request.user_plugins:
|
||||
for script in plugin.js_dependencies:
|
||||
kwargs['scripts'].add(script)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue