aboutsummaryrefslogtreecommitdiff
path: root/src/background/index.js
blob: 70d514fcab4e13700d1d65f0a3f209cd82ecd52e (plain) (blame)
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
import BackgroundComponent from 'background/components/background';
import OperationComponent from 'background/components/operation';
import TabComponent from 'background/components/tab';
import reducers from 'background/reducers';
import { createStore, applyMiddleware } from 'redux';
import promise from 'redux-promise';

import ContentMessageListener from './infrastructures/content-message-listener';
import SettingController from './controllers/setting';
import VersionRepository from './controllers/version';

const store = createStore(
  reducers,
  applyMiddleware(promise),
);

/* eslint-disable no-unused-vars */
const backgroundComponent = new BackgroundComponent(store);
const operationComponent = new OperationComponent(store);
const tabComponent = new TabComponent(store);
/* eslint-enable no-unused-vars */

new SettingController().reload();
new VersionRepository().notifyIfUpdated();

new ContentMessageListener().run();