From 74090c9ec7cddde1f0ce81cf42a637c310e16e19 Mon Sep 17 00:00:00 2001 From: Nikita Karamov Date: Wed, 1 Mar 2023 11:50:43 +0100 Subject: [PATCH] Fix instance prefill not working Closes https://codeberg.org/kytta/toot/issues/15 --- src/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.js b/src/main.js index 8ae43cc..4147288 100644 --- a/src/main.js +++ b/src/main.js @@ -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++) {