Commit 47afdfd7 authored by Yeray Diaz Diaz's avatar Yeray Diaz Diaz Committed by Waylan Limberg
Browse files

Prevent reinjection of extra Javascript files on reload (#1388)

parent d00a8e52
......@@ -22,8 +22,9 @@ class SearchPlugin(BasePlugin):
if not ('search_index_only' in config['theme'] and config['theme']['search_index_only']):
path = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'templates')
for extra_js in ('search/require.js', 'search/search.js'):
if extra_js not in config['extra_javascript']:
return config
def on_pre_build(self, config, **kwargs):
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment