Skip to content

Commit

Permalink
fix: disable send button when loading form with hCaptcha
Browse files Browse the repository at this point in the history
  • Loading branch information
CorySanin committed Aug 5, 2024
1 parent 9998756 commit a4b97a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion views/index.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<% } else if (locals.hCaptcha) { %>
<div class="second-col h-captcha" data-sitekey="<%= hCaptcha %>" data-theme="<% echo(locals.dark ? 'dark':'light') %>" data-callback="unblockSend"></div>
<% } %>
<div class="second-col"><input id="sendBtn" type="submit" value="Send" <% if (recaptcha) { %>disabled<% } %>></div>
<div class="second-col"><input id="sendBtn" type="submit" value="Send" <% if (recaptcha || hCaptcha) { %>disabled<% } %>></div>
<div class="second-col"><%- include("powered-by", locals) %></div>
</form>
</div>
Expand Down

0 comments on commit a4b97a6

Please sign in to comment.