fix: update redirect link

This commit is contained in:
Artemy 2023-08-15 16:26:36 +03:00
parent aed37d6698
commit c70a84db52

View File

@ -30,9 +30,9 @@ export default async function google(
}); });
const searchForm = ` const searchForm = `
<form onsubmit="window.location.href = '/?url=https://www.google.com/search?q='+ document.getElementById('q').value.split(' ').join('+'); return false"> <form onsubmit="window.location.href = '/get?url=https://www.google.com/search?q='+ document.getElementById('q').value.split(' ').join('+'); return false">
<input type="text" name="q" id="q"> <input type="text" name="q" id="q">
<input type="button" value="Search" onclick="window.location.href = '/?url=https://www.google.com/search?q='+ document.getElementById('q').value.split(' ').join('+');"> <input type="button" value="Search" onclick="window.location.href = '/get?url=https://www.google.com/search?q='+ document.getElementById('q').value.split(' ').join('+');">
</form> </form>
`; `;