diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2018-07-07 16:58:09 +0900 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2018-07-08 11:44:37 +0900 |
commit | 327144a3aa962b51d9b143941be4e626abbc7ee7 (patch) | |
tree | a29069d9aac9085d1dbaa02ad64111f95ef94765 /src/content/index.js | |
parent | 85b4bd5b073af729ff325e90fa3c9078f90277ac (diff) |
[wip] content
Diffstat (limited to 'src/content/index.js')
-rw-r--r-- | src/content/index.js | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/content/index.js b/src/content/index.js index 97a8b30..d6743ce 100644 --- a/src/content/index.js +++ b/src/content/index.js @@ -1,10 +1,15 @@ import './console-frame.scss'; -import { createStore } from 'shared/store'; +import { createStore, applyMiddleware } from 'redux'; +import promise from 'redux-promise'; import reducers from 'content/reducers'; import TopContentComponent from './components/top-content'; import FrameContentComponent from './components/frame-content'; -const store = createStore(reducers); +const store = createStore( + reducers, + applyMiddleware(promise), +); + if (window.self === window.top) { new TopContentComponent(window, store); // eslint-disable-line no-new |