Remove Object.append(...) from index.ejs

(incompatible with IE11)
This commit is contained in:
Adam T. Doyle 2019-08-07 08:12:44 -04:00
parent 491f4535eb
commit 5b4988f6d1

View File

@ -25,7 +25,11 @@
<% if (typeof globals !== 'undefined' && Object.keys(globals).length) { %>
<script>
Object.assign(window, <%= JSON.stringify(globals) %>);
<% for (var varName in globals) { %>
<% if (globals[varName] != undefined) { %>
window['<%=varName%>'] = <%= JSON.stringify(globals[varName]) %>;
<% } %>
<% } %>
</script>
<% } %>