Fix lint err

This commit is contained in:
Henry Goodman 2024-08-02 22:12:53 +10:00
parent 4cd3734805
commit 25f947d94c
No known key found for this signature in database
GPG Key ID: 72E678A2D98E1D54

View File

@ -20,8 +20,8 @@ function initRepoDiffReviewButton() {
if (!counter) return;
function handleFormSubmit(form, textarea) {
if (form.dataset.handlerAttached === 'true') return;
form.dataset.handlerAttached = 'true';
if (form.getAttribute('data-handler-attached') === 'true') return;
form.setAttribute('data-handler-attached', 'true');
form.addEventListener('submit', (event) => {
if (textarea.value.trim() === '') {
event.preventDefault();