mirror of
https://github.com/badlogic/heissepreise.git
synced 2024-06-19 23:18:45 +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");
|
||||
if (query) {
|
||||
document.querySelector("input").value = query;
|
||||
|
||||
document.querySelector(".search").value = query;
|
||||
const inputEvent = new Event('input', {
|
||||
bubbles: true,
|
||||
cancelable: false
|
||||
});
|
||||
document.querySelector("input").dispatchEvent(inputEvent);
|
||||
document.querySelector(".search").dispatchEvent(inputEvent);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user