blob: 9bad9677b830ae83401a40433bfb7a208217e79e (
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 * as store from '../store';
const settingStore = store.createStore(settingReducer);
let settingComponent = null;
settingStore.subscribe(() => {
settingComponent.update();
});
document.addEventListener('DOMContentLoaded', () => {
settingComponent = new SettingComponent(document.body, settingStore);
});
|