Fix instance prefill not working

Closes https://codeberg.org/kytta/toot/issues/15
This commit is contained in:
Nikita Karamov 2023-03-01 11:50:43 +01:00
parent 91805c200a
commit 74090c9ec7
No known key found for this signature in database
GPG key ID: 41D6F71EE78E77CD

View file

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