mirror of
https://github.com/gethomepage/homepage.git
synced 2025-12-29 17:52:13 +08:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
29e0b309e5 | ||
|
|
ce644afe9e |
@@ -84,7 +84,7 @@ export default function Search({ options }) {
|
||||
function handleSubmit(event) {
|
||||
const q = encodeURIComponent(query);
|
||||
|
||||
const url = { selectedProvider };
|
||||
const { url } = selectedProvider;
|
||||
if (url) {
|
||||
window.open(`${url}${q}`, options.target || "_blank");
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user