mirror of
https://github.com/benbusby/whoogle-search.git
synced 2026-03-11 08:54:34 +00:00
Include leading slash in path replacement for result config changes
This commit is contained in:
parent
3f363b0175
commit
aa198ed562
1 changed files with 1 additions and 1 deletions
|
|
@ -6,7 +6,7 @@ document.addEventListener("DOMContentLoaded", () => {
|
|||
|
||||
countrySelect.onchange = () => {
|
||||
let str = window.location.href;
|
||||
n = str.lastIndexOf("search");
|
||||
n = str.lastIndexOf("/search");
|
||||
if (n > 0) {
|
||||
str = str.substring(0, n) +
|
||||
`search?q=${searchBar.value}&country=${countrySelect.value}`;
|
||||
|
|
|
|||
Loading…
Reference in a new issue