updating 500-embed to load after page is fully loaded, #5733

v1.18.x
Julian Lam 7 years ago
parent 26d4c18340
commit a6b993ef6c

@ -1,5 +1,6 @@
<script> <script>
define('/assets/templates/500.jst', function () { window.addEventListener('load', function () {
define('/assets/templates/500.jst', function () {
function compiled(helpers, context, get, iter, helper) { function compiled(helpers, context, get, iter, helper) {
return '<div class="alert alert-danger">\n\t<strong>[[global:500.title]]</strong>\n\t<p>[[global:500.message]]</p>\n\t<p>' + return '<div class="alert alert-danger">\n\t<strong>[[global:500.title]]</strong>\n\t<p>[[global:500.message]]</p>\n\t<p>' +
helpers.__escape(get(context && context['path'])) + '</p>\n\t' + helpers.__escape(get(context && context['path'])) + '</p>\n\t' +
@ -8,5 +9,6 @@ define('/assets/templates/500.jst', function () {
} }
return compiled; return compiled;
}); });
});
</script> </script>
Loading…
Cancel
Save