aboutsummaryrefslogtreecommitdiffstats
path: root/src/app.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/app.js')
-rw-r--r--src/app.js11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/app.js b/src/app.js
index cb3e37c64..797c178a3 100644
--- a/src/app.js
+++ b/src/app.js
@@ -18,7 +18,6 @@ import apiFactory from './api';
18import actions from './actions'; 18import actions from './actions';
19import MenuFactory from './lib/Menu'; 19import MenuFactory from './lib/Menu';
20import TouchBarFactory from './lib/TouchBar'; 20import TouchBarFactory from './lib/TouchBar';
21import * as analytics from './lib/analytics';
22 21
23import I18N from './I18n'; 22import I18N from './I18n';
24import AppLayoutContainer from './containers/layout/AppLayoutContainer'; 23import AppLayoutContainer from './containers/layout/AppLayoutContainer';
@@ -54,20 +53,20 @@ webFrame.setVisualZoomLevelLimits(1, 1);
54webFrame.setLayoutZoomLevelLimits(0, 0); 53webFrame.setLayoutZoomLevelLimits(0, 0);
55 54
56window.addEventListener('load', () => { 55window.addEventListener('load', () => {
57 const api = apiFactory(new ServerApi(), new LocalApi()); 56 const serverApi = new ServerApi();
57 const api = apiFactory(serverApi, new LocalApi());
58 const router = new RouterStore(); 58 const router = new RouterStore();
59 const history = syncHistoryWithStore(hashHistory, router);
60 const stores = storeFactory(api, actions, router); 59 const stores = storeFactory(api, actions, router);
60 const history = syncHistoryWithStore(hashHistory, router);
61 const menu = new MenuFactory(stores, actions); 61 const menu = new MenuFactory(stores, actions);
62 const touchBar = new TouchBarFactory(stores, actions); 62 const touchBar = new TouchBarFactory(stores, actions);
63 63
64 window.franz = { 64 window.ferdi = {
65 stores, 65 stores,
66 actions, 66 actions,
67 api, 67 api,
68 menu, 68 menu,
69 touchBar, 69 touchBar,
70 analytics,
71 features: {}, 70 features: {},
72 render() { 71 render() {
73 const preparedApp = ( 72 const preparedApp = (
@@ -114,7 +113,7 @@ window.addEventListener('load', () => {
114 render(preparedApp, document.getElementById('root')); 113 render(preparedApp, document.getElementById('root'));
115 }, 114 },
116 }; 115 };
117 window.franz.render(); 116 window.ferdi.render();
118}); 117});
119 118
120// Prevent drag and drop into window from redirecting 119// Prevent drag and drop into window from redirecting