mirror of
https://codeberg.org/catask-org/catask.git
synced 2025-04-20 13:53:42 -05:00
don't add antispam scripts if antispam is not enabled
This commit is contained in:
parent
65ac530e39
commit
cab955dbea
1 changed files with 2 additions and 0 deletions
|
@ -3,6 +3,7 @@
|
||||||
{% set homeLink = 'active' %}
|
{% set homeLink = 'active' %}
|
||||||
{% block additionalHeadItems %}
|
{% block additionalHeadItems %}
|
||||||
<link rel="stylesheet" href="{{ url_for('static', filename='css/toastify.css') }}">
|
<link rel="stylesheet" href="{{ url_for('static', filename='css/toastify.css') }}">
|
||||||
|
{% if cfg.antispam.enabled %}
|
||||||
{% if cfg.antispam.type == 'recaptcha' %}
|
{% if cfg.antispam.type == 'recaptcha' %}
|
||||||
<script src="https://www.google.com/recaptcha/api.js" async defer></script>
|
<script src="https://www.google.com/recaptcha/api.js" async defer></script>
|
||||||
{% elif cfg.antispam.type == 'turnstile' %}
|
{% elif cfg.antispam.type == 'turnstile' %}
|
||||||
|
@ -11,6 +12,7 @@
|
||||||
<script type="module" src="https://cdn.jsdelivr.net/npm/@friendlycaptcha/sdk@0.1.9/site.min.js" async defer></script>
|
<script type="module" src="https://cdn.jsdelivr.net/npm/@friendlycaptcha/sdk@0.1.9/site.min.js" async defer></script>
|
||||||
<script nomodule src="https://cdn.jsdelivr.net/npm/@friendlycaptcha/sdk@0.1.9/site.compat.min.js" async defer></script>
|
<script nomodule src="https://cdn.jsdelivr.net/npm/@friendlycaptcha/sdk@0.1.9/site.compat.min.js" async defer></script>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div id="top-response-container"></div>
|
<div id="top-response-container"></div>
|
||||||
|
|
Loading…
Add table
Reference in a new issue