mirror of
https://github.com/gethomepage/homepage.git
synced 2026-09-27 06:21:18 -07:00
Chore: homepage tests (#6278)
This commit is contained in:
@@ -9,6 +9,10 @@ export default async function handler(req, res) {
|
||||
|
||||
const provider = Object.values(searchProviders).find(({ name }) => name === providerName);
|
||||
|
||||
if (!provider) {
|
||||
return res.json([query, []]);
|
||||
}
|
||||
|
||||
if (provider.name === "Custom") {
|
||||
const widgets = await widgetsFromConfig();
|
||||
const searchWidget = widgets.find((w) => w.type === "search");
|
||||
|
||||
Reference in New Issue
Block a user