This commit is contained in:
Fabio Manganiello 2018-11-02 00:07:42 +01:00
parent f1e1ee92d3
commit cd3aea5cd6
3 changed files with 3 additions and 3 deletions

View file

@ -19,7 +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 ? 'true' : 'false') %};
window.has_ssl = {% print('true' if has_ssl else 'false') %};
{% if token %}
window.token = '{% print(token) %}';

View file

@ -17,7 +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 ? 'true' : 'false') %};
window.has_ssl = {% print('true' if has_ssl else 'false') %};
{% if token %}
window.token = '{% print(token) %}'

View file

@ -18,7 +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 ? 'true' : 'false') %};
window.has_ssl = {% print('true' if has_ssl else 'false') %};
window.map_start = "{{ start }}";
window.map_end = "{{ end }}";