Check for is peak before connecting to gateway

This commit is contained in:
Jeremy Zhang
2018-11-17 20:33:39 +00:00
parent a9d41cdb28
commit 140083b9c8
3 changed files with 13 additions and 4 deletions

View File

@ -525,6 +525,7 @@
const post_timeout = {{ guild["post_timeout"]|tojson|safe }};
const visitors_enabled = {% if visitors_enabled %}true{% else %}false{% endif %};
const unauth_captcha_enabled = {% if unauth_captcha_enabled %}true{% else %}false{% endif %};
const is_peak = {{ is_peak|tojson|safe }};
</script>
<script type="text/javascript" src="{{ url_for('static', filename='js/embed.js') }}"></script>