This commit is contained in:
howard 2021-04-23 16:46:44 -07:00
parent f2ab47994b
commit b657bfb6ba
2 changed files with 3 additions and 4 deletions

View File

@ -37,15 +37,14 @@ const App = ({ store }) => {
}
export let sce
export let pako
document.addEventListener('DOMContentLoaded', async () => {
const { Scene } = await import('../Scene')
sce = new Scene(store)
// window.sc = sce
ReactDOM.render(<App store={store} />, document.getElementById('react'));
ReactDOM.render(<App store={store} />, document.getElementById('react'));
});

View File

@ -1,9 +1,9 @@
import React, { useState } from 'react';
import { useDispatch, useSelector } from 'react-redux'
import { useDispatch} from 'react-redux'
import { sce, pako } from './app'
import { sce } from './app'
const utf8decoder = new TextDecoder();