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