|
|
@ -197,8 +197,14 @@ function Home({ initialSettings }) {
|
|
|
|
let searchProvider = null;
|
|
|
|
let searchProvider = null;
|
|
|
|
const searchWidget = Object.values(widgets).find(w => w.type === "search");
|
|
|
|
const searchWidget = Object.values(widgets).find(w => w.type === "search");
|
|
|
|
if (searchWidget) {
|
|
|
|
if (searchWidget) {
|
|
|
|
|
|
|
|
if (searchWidget.options?.provider === 'custom') {
|
|
|
|
|
|
|
|
searchProvider = {
|
|
|
|
|
|
|
|
url: searchWidget.options.url
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
} else {
|
|
|
|
searchProvider = searchProviders[searchWidget.options?.provider];
|
|
|
|
searchProvider = searchProviders[searchWidget.options?.provider];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
useEffect(() => {
|
|
|
|
useEffect(() => {
|
|
|
|
function handleKeyDown(e) {
|
|
|
|
function handleKeyDown(e) {
|
|
|
|