better param encoding
This commit is contained in:
parent
1c67bc8cbf
commit
e53e84b31f
1 changed files with 1 additions and 1 deletions
|
|
@ -64,7 +64,7 @@ searcher = () => {
|
|||
const query = element.target.value.trim()
|
||||
const fb = findbang(query)
|
||||
const url = fb.valid ? fb.data.u : 'https://www.google.com/search?q={{{s}}}'
|
||||
window.location.href = url.replace('{{{s}}}', encodeURI(fb.found ? query.replace('!'+fb.inputed, '').trim() : query.trim()))
|
||||
window.location.href = url.replace('{{{s}}}', encodeURIComponent(fb.found ? query.replace('!'+fb.inputed, '').trim() : query.trim()))
|
||||
}
|
||||
document.querySelector('#search_ddd').addEventListener('change', find)
|
||||
document.querySelector('#search_ddd').addEventListener('input', (e) => {proceed(e.target.value.trim())})
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue