From de1b08a941a6834a39159b9a2aa3ff3552df029f Mon Sep 17 00:00:00 2001 From: Adam Tauber Date: Thu, 4 Jun 2020 19:20:44 +0200 Subject: [enh] add unique class for each endpoint - closes #1133 --- searx/webapp.py | 1 + 1 file changed, 1 insertion(+) (limited to 'searx/webapp.py') diff --git a/searx/webapp.py b/searx/webapp.py index 46d4e949c..2ba8ccfb8 100755 --- a/searx/webapp.py +++ b/searx/webapp.py @@ -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) -- cgit v1.2.3