Fix: wrap livereload.js in DEBUG conditional (#2543)

Co-authored-by: al-munazzim <al-munazzim@users.noreply.github.com>
This commit is contained in:
al-munazzim 2026-03-19 10:11:28 -03:00 committed by GitHub
parent 7fa79ed5f5
commit a60e98ea8e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -13,7 +13,9 @@
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='typography.css') }}?{{rand}}">
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='output.css') }}?{{rand}}">
{% if config.DEBUG %}
<script>document.write('<script src="http://' + (location.host || 'localhost').split(':')[0] + ':35729/livereload.js?snipver=1"></' + 'script>')</script>
{% endif %}
<script type="text/javascript" src="{{ url_for('static', filename='helpers.js') }}"></script>
{% include "includes/helpers.jinja" %}