Propagate SSL flag to the templates
This commit is contained in:
parent
e571d8ea41
commit
51440d43fd
3 changed files with 3 additions and 0 deletions
|
@ -19,6 +19,7 @@
|
||||||
<script type="text/javascript" src="{{ url_for('static', filename='js/assistant.google.js') }}"></script>
|
<script type="text/javascript" src="{{ url_for('static', filename='js/assistant.google.js') }}"></script>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
window.websocket_port = {% print(websocket_port) %};
|
window.websocket_port = {% print(websocket_port) %};
|
||||||
|
window.has_ssl = {% print(has_ssl) %};
|
||||||
|
|
||||||
{% if token %}
|
{% if token %}
|
||||||
window.token = '{% print(token) %}';
|
window.token = '{% print(token) %}';
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
<script type="text/javascript" src="{{ url_for('static', filename='js/pushbullet.js') }}"></script>
|
<script type="text/javascript" src="{{ url_for('static', filename='js/pushbullet.js') }}"></script>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
window.websocket_port = {% print(websocket_port) %}
|
window.websocket_port = {% print(websocket_port) %}
|
||||||
|
window.has_ssl = {% print(has_ssl) %};
|
||||||
|
|
||||||
{% if token %}
|
{% if token %}
|
||||||
window.token = '{% print(token) %}'
|
window.token = '{% print(token) %}'
|
||||||
|
|
|
@ -18,6 +18,7 @@
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
window.db_conf = JSON.parse('{{ utils.to_json(config["db"]) | safe }}');
|
window.db_conf = JSON.parse('{{ utils.to_json(config["db"]) | safe }}');
|
||||||
window.websocket_port = {{ websocket_port }};
|
window.websocket_port = {{ websocket_port }};
|
||||||
|
window.has_ssl = {% print(has_ssl) %};
|
||||||
window.map_start = "{{ start }}";
|
window.map_start = "{{ start }}";
|
||||||
window.map_end = "{{ end }}";
|
window.map_end = "{{ end }}";
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue