mirror of
https://github.com/zulip/zulip.git
synced 2025-11-11 09:27:43 +00:00
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:
@@ -29,12 +29,6 @@
|
|||||||
<script type="text/javascript" src="/static/third/handlebars/handlebars.runtime.js"></script>
|
<script type="text/javascript" src="/static/third/handlebars/handlebars.runtime.js"></script>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% compressed_js 'app' %}
|
|
||||||
|
|
||||||
{% if debug %}
|
|
||||||
{% compressed_js 'app_debug' %}
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{# Insert parameters, which have been encoded with JSONEncoderForHTML. #}
|
{# Insert parameters, which have been encoded with JSONEncoderForHTML. #}
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
{% autoescape off %}
|
{% autoescape off %}
|
||||||
@@ -42,6 +36,12 @@ var page_params = {{ page_params }};
|
|||||||
{% endautoescape %}
|
{% endautoescape %}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
{% compressed_js 'app' %}
|
||||||
|
|
||||||
|
{% if debug %}
|
||||||
|
{% compressed_js 'app_debug' %}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="container-fluid">
|
<div class="container-fluid">
|
||||||
|
|||||||
Reference in New Issue
Block a user