馃 distributed transcription service
thistle.dunkirk.sh
1// Wait for component to be defined before setting token
2await customElements.whenDefined("reset-password-form");
3
4// Get token from URL and pass to component
5const urlParams = new URLSearchParams(window.location.search);
6const token = urlParams.get("token");
7const resetForm = document.getElementById("reset-form");
8if (resetForm) {
9 (resetForm as { token: string | null }).token = token;
10}