Propagate SSL flag to the templates

This commit is contained in:
Fabio Manganiello 2018-11-02 00:04:49 +01:00
parent e571d8ea41
commit 51440d43fd
3 changed files with 3 additions and 0 deletions

View file

@ -19,6 +19,7 @@
<script type="text/javascript" src="{{ url_for('static', filename='js/assistant.google.js') }}"></script>
<script type="text/javascript">
window.websocket_port = {% print(websocket_port) %};
window.has_ssl = {% print(has_ssl) %};
{% if token %}
window.token = '{% print(token) %}';

View file

@ -17,6 +17,7 @@
<script type="text/javascript" src="{{ url_for('static', filename='js/pushbullet.js') }}"></script>
<script type="text/javascript">
window.websocket_port = {% print(websocket_port) %}
window.has_ssl = {% print(has_ssl) %};
{% if token %}
window.token = '{% print(token) %}'

View file

@ -18,6 +18,7 @@
<script type="text/javascript">
window.db_conf = JSON.parse('{{ utils.to_json(config["db"]) | safe }}');
window.websocket_port = {{ websocket_port }};
window.has_ssl = {% print(has_ssl) %};
window.map_start = "{{ start }}";
window.map_end = "{{ end }}";