blob: 076d23dbc6f0d02a79aafa04d659a9de1203e768 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
import './settings.scss';
import SettingComponent from '../components/setting';
import settingReducer from '../reducers/setting';
import { createStore } from '../store';
const store = createStore(settingReducer);
let settingComponent = null;
store.subscribe(() => {
settingComponent.update();
});
document.addEventListener('DOMContentLoaded', () => {
settingComponent = new SettingComponent(document.body, store);
});
|