aboutsummaryrefslogtreecommitdiffstats
path: root/src/app.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/app.js')
-rw-r--r--src/app.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/app.js b/src/app.js
index 0138bc84d..ccf13b555 100644
--- a/src/app.js
+++ b/src/app.js
@@ -53,13 +53,16 @@ webFrame.setVisualZoomLevelLimits(1, 1);
53webFrame.setLayoutZoomLevelLimits(0, 0); 53webFrame.setLayoutZoomLevelLimits(0, 0);
54 54
55window.addEventListener('load', () => { 55window.addEventListener('load', () => {
56 const api = apiFactory(new ServerApi(), new LocalApi()); 56 const serverApi = new ServerApi();
57 const api = apiFactory(serverApi, new LocalApi());
57 const router = new RouterStore(); 58 const router = new RouterStore();
58 const history = syncHistoryWithStore(hashHistory, router);
59 const stores = storeFactory(api, actions, router); 59 const stores = storeFactory(api, actions, router);
60 serverApi.setStores(stores);
61 const history = syncHistoryWithStore(hashHistory, router);
60 const menu = new MenuFactory(stores, actions); 62 const menu = new MenuFactory(stores, actions);
61 const touchBar = new TouchBarFactory(stores, actions); 63 const touchBar = new TouchBarFactory(stores, actions);
62 64
65
63 window.ferdi = { 66 window.ferdi = {
64 stores, 67 stores,
65 actions, 68 actions,