Fix instance prefill not working

Closes https://codeberg.org/kytta/toot/issues/15

See: https://codeberg.org/kytta/toot/pulls/16
This commit is contained in:
Nikita Karamov 2023-03-01 11:52:08 +01:00
commit 2b842ca027
No known key found for this signature in database
GPG key ID: 41D6F71EE78E77CD

View file

@ -115,7 +115,7 @@ function onFormSubmit(form) {
return true;
}
const prefillInstance = getRecentInstances()[0];
let prefillInstance = getRecentInstances()[0];
const URLParams = window.location.search.substr(1).split("&");
for (let i = 0; i < URLParams.length; i++) {