Fix challenge plugin rendering under beta theme interface

This commit is contained in:
Kevin Chung
2023-06-27 12:48:40 -04:00
parent 6c97610ea4
commit 32f3d345e1

View File

@@ -6,6 +6,9 @@
</script>
{% if "beta" in Configs.ctf_theme %}
{{ Assets.js("assets/js/challenges.js") }}
<script type="module">
CTFd.pages.challenge.displayChallenge(CHALLENGE_ID);
</script>
{% else %}
{# TODO: Remove this in CTFd 4.0 when old themes have been deprecated #}
<script type="module">