mirror of
https://github.com/wassname/talk.git
synced 2026-08-12 12:30:39 +08:00
Added new pageData action/reducer
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user