diff --git a/templates/add_account.html b/templates/add_account.html
index 246a008..93a621e 100644
--- a/templates/add_account.html
+++ b/templates/add_account.html
@@ -128,20 +128,19 @@
}
}
});
+
+ const sharedText = accountDetailsTextarea.dataset.sharedText;
+
+ if (sharedText && sharedText !== 'None') {
+ accountDetailsTextarea.value = sharedText;
+ const event = new Event('input', {
+ bubbles: true,
+ cancelable: true,
+ });
+ accountDetailsTextarea.dispatchEvent(event);
+ }
}
});
-
- const accountDetailsTextarea = document.getElementById('accountDetails');
- const sharedText = accountDetailsTextarea.dataset.sharedText;
-
- if (sharedText && sharedText !== 'None') {
- accountDetailsTextarea.value = sharedText;
- const event = new Event('input', {
- bubbles: true,
- cancelable: true,
- });
- accountDetailsTextarea.dispatchEvent(event);
- }
});
{% endblock %}