aboutsummaryrefslogtreecommitdiff
path: root/src/content/index.js
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2018-07-07 16:58:09 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2018-07-08 11:44:37 +0900
commit327144a3aa962b51d9b143941be4e626abbc7ee7 (patch)
treea29069d9aac9085d1dbaa02ad64111f95ef94765 /src/content/index.js
parent85b4bd5b073af729ff325e90fa3c9078f90277ac (diff)
[wip] content
Diffstat (limited to 'src/content/index.js')
-rw-r--r--src/content/index.js9
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