Added new pageData action/reducer

This commit is contained in:
Wyatt Johnson
2017-03-16 11:07:38 -06:00
parent 3277923a8c
commit 598fcc4cb0
10 changed files with 65 additions and 12 deletions
+9 -1
View File
@@ -8,9 +8,17 @@
<% if (locals.customCssUrl) { %>
<link href="<%= customCssUrl %>" rel="stylesheet" type="text/css">
<% } %>
<% if (data != null) { %>
<script id="data" type="application/json"><%- JSON.stringify(data) %></script>
<% } %>
</head>
<body>
<div id="coralStream"></div>
<script src="/client/embed/stream/bundle.js"></script>
<%# <script src="/client/embed/stream/bundle.js"></script> %>
<script type="text/javascript">
let json = document.getElementById('data');
let myObject = JSON.parse(json.textContent);
</script>
</body>
</html>