fix: submit button not enabled

This commit is contained in:
Ayo 2023-08-16 15:37:53 +02:00
parent b9406f006a
commit b357ee58c4

View file

@ -67,7 +67,7 @@ export function renderPost(responseText: string | null, url, postDivSelector: st
const appUrl = document.getElementById('app-url') as HTMLInputElement; const appUrl = document.getElementById('app-url') as HTMLInputElement;
const homeBtn = document.querySelector<HTMLButtonElement>('#app-home'); const homeBtn = document.querySelector<HTMLButtonElement>('#app-home');
const backBtn = document.querySelector<HTMLButtonElement>('#app-back'); const backBtn = document.querySelector<HTMLButtonElement>('#app-back');
const submitBtn = document.querySelector<HTMLButtonElement>('#app-submit'); const submitBtn = document.querySelector<HTMLButtonElement>('#submit');
if(cozyUrl !== '/') { if(cozyUrl !== '/') {
appUrl.value = cozyUrl || ''; appUrl.value = cozyUrl || '';
backBtn?.removeAttribute('disabled'); backBtn?.removeAttribute('disabled');