mirror of
https://github.com/aljazceru/CTFd.git
synced 2025-12-17 22:14:25 +01:00
Fix challenge plugin rendering under beta theme interface
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user