mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-07 07:21:17 +08:00
Remove Object.append(...) from index.ejs
(incompatible with IE11)
This commit is contained in:
parent
491f4535eb
commit
5b4988f6d1
@ -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>
|
||||
<% } %>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user