mirror of
https://github.com/wassname/talk.git
synced 2026-08-15 12:55:10 +08:00
Added new pageData action/reducer
This commit is contained in:
@@ -82,6 +82,9 @@
|
||||
}
|
||||
|
||||
</style>
|
||||
<% if (data != null) { %>
|
||||
<script id="data" type="application/json"><%- JSON.stringify(data) %></script>
|
||||
<% } %>
|
||||
</head>
|
||||
<body>
|
||||
<div id="root"></div>
|
||||
|
||||
@@ -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