We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 505552a commit 08a8747Copy full SHA for 08a8747
dev/app/utils/wrap-with-hits.js
@@ -78,9 +78,15 @@ export const wrapWithHits = (
78
})
79
);
80
81
- initWidget(window.document.getElementById('widget-display'));
+ if (initWidget.length === 1) {
82
+ initWidget(window.document.getElementById('widget-display'));
83
- window.search.start();
84
+ return window.search.start();
85
+ }
86
+
87
+ return initWidget(window.document.getElementById('widget-display'), () => {
88
+ window.search.start();
89
+ });
90
};
91
92
export const wrapWithHitsAndJquery = fn =>
0 commit comments