Skip to content

Commit

Permalink
updated docs
Browse files Browse the repository at this point in the history
  • Loading branch information
pryley committed Oct 25, 2024
1 parent b9ecc21 commit f8f1c2b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
return $javascript."
document.addEventListener('DOMContentLoaded', function () {
GLSR.Event.on('site-reviews/form/handle', function (response, form) {
if (true !== response.success || 0 !== response.errors.length) return;
if (true !== response?.success) return;
form.classList.add('glsr-hide-form');
form.insertAdjacentHTML('afterend', '<p>' + response.message + '</p>');
});
Expand Down

0 comments on commit f8f1c2b

Please sign in to comment.