mirror of https://github.com/zulip/zulip.git
Execute our main app code after we load page_params
We believe this was the source of the occational exception in dev for page_params being undefined. (imported from commit 3d085b7af831b4c936f492d02517652bf8509557)
This commit is contained in:
parent
93b66737ce
commit
f39bc69cf4
|
@ -29,12 +29,6 @@
|
|||
<script type="text/javascript" src="/static/third/handlebars/handlebars.runtime.js"></script>
|
||||
{% endif %}
|
||||
|
||||
{% compressed_js 'app' %}
|
||||
|
||||
{% if debug %}
|
||||
{% compressed_js 'app_debug' %}
|
||||
{% endif %}
|
||||
|
||||
{# Insert parameters, which have been encoded with JSONEncoderForHTML. #}
|
||||
<script type="text/javascript">
|
||||
{% autoescape off %}
|
||||
|
@ -42,6 +36,12 @@ var page_params = {{ page_params }};
|
|||
{% endautoescape %}
|
||||
</script>
|
||||
|
||||
{% compressed_js 'app' %}
|
||||
|
||||
{% if debug %}
|
||||
{% compressed_js 'app_debug' %}
|
||||
{% endif %}
|
||||
|
||||
{% endblock %}
|
||||
{% block content %}
|
||||
<div class="container-fluid">
|
||||
|
|
Loading…
Reference in New Issue