aboutsummaryrefslogtreecommitdiff
path: root/src/pages/settings.js
blob: 6e25e6f80cbb20ce0596cbe6c3dafa44631b44c2 (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);
});