Skip to content

Commit 016f41c

Browse files
Fix JS error
1 parent d17db65 commit 016f41c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/front-end/searcher/searcher.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/* global Mark, elasticlunr, path_to_root */
44

55
window.search = window.search || {};
6-
(function search(search) {
6+
(function search() {
77
// Search functionality
88
//
99
// You can use !hasFocus() to prevent keyhandling in your key
@@ -288,6 +288,9 @@ window.search = window.search || {};
288288

289289
// If reloaded, do the search or mark again, depending on the current url parameters
290290
doSearchOrMarkFromUrl();
291+
292+
// Exported functions
293+
config.hasFocus = hasFocus;
291294
}
292295

293296
function unfocusSearchbar() {
@@ -521,6 +524,4 @@ window.search = window.search || {};
521524

522525
loadScript(path_to_root + '{{ resource "searchindex.js" }}', 'search-index');
523526

524-
// Exported functions
525-
search.hasFocus = hasFocus;
526527
})(window.search);

0 commit comments

Comments
 (0)