mirror of
https://github.com/badlogic/heissepreise.git
synced 2024-06-29 20:05:51 +02:00
Fix query sharing.
This commit is contained in:
parent
cb287167d9
commit
dcc839cccb
|
@ -65,12 +65,13 @@ async function load() {
|
||||||
});
|
});
|
||||||
const query = getQueryParameter("q");
|
const query = getQueryParameter("q");
|
||||||
if (query) {
|
if (query) {
|
||||||
document.querySelector("input").value = query;
|
|
||||||
|
document.querySelector(".search").value = query;
|
||||||
const inputEvent = new Event('input', {
|
const inputEvent = new Event('input', {
|
||||||
bubbles: true,
|
bubbles: true,
|
||||||
cancelable: false
|
cancelable: false
|
||||||
});
|
});
|
||||||
document.querySelector("input").dispatchEvent(inputEvent);
|
document.querySelector(".search").dispatchEvent(inputEvent);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user