-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathembed.html
More file actions
29 lines (25 loc) · 974 Bytes
/
embed.html
File metadata and controls
29 lines (25 loc) · 974 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<div id="acenji_root"></div>
<link rel="stylesheet" href="https://acenji.com/build_web_app/static/css/main.b6215c01.css">
<script src="https://acenji.com/build_web_app/static/js/main.js"></script>
<script>
window.addEventListener('load', () => {
// Replace 'your_actual_app_id' with your real identifier.
const appId = 643;
localStorage.setItem('web_app_id', appId);
const rootElement = document.getElementById('acenji_root');
const {React, ReactDOM, Provider, configureStore, default: App} = window.AppLibrary;
const store = configureStore();
const root = ReactDOM.createRoot(rootElement);
root.render(
React.createElement(
React.StrictMode,
null,
React.createElement(
Provider,
{store: store},
React.createElement(App)
)
)
);
});
</script>