mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-06 20:28:48 +00:00
Support custom search in quicklaunch web search
This commit is contained in:
parent
9b8e01971f
commit
1f5912c232
3 changed files with 10 additions and 3 deletions
|
@ -197,7 +197,13 @@ function Home({ initialSettings }) {
|
|||
let searchProvider = null;
|
||||
const searchWidget = Object.values(widgets).find(w => w.type === "search");
|
||||
if (searchWidget) {
|
||||
searchProvider = searchProviders[searchWidget.options?.provider];
|
||||
if (searchWidget.options?.provider === 'custom') {
|
||||
searchProvider = {
|
||||
url: searchWidget.options.url
|
||||
}
|
||||
} else {
|
||||
searchProvider = searchProviders[searchWidget.options?.provider];
|
||||
}
|
||||
}
|
||||
|
||||
useEffect(() => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue