diff options
Diffstat (limited to 'src/app.js')
-rw-r--r-- | src/app.js | 11 |
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'; | |||
18 | import actions from './actions'; | 18 | import actions from './actions'; |
19 | import MenuFactory from './lib/Menu'; | 19 | import MenuFactory from './lib/Menu'; |
20 | import TouchBarFactory from './lib/TouchBar'; | 20 | import TouchBarFactory from './lib/TouchBar'; |
21 | import * as analytics from './lib/analytics'; | ||
22 | 21 | ||
23 | import I18N from './I18n'; | 22 | import I18N from './I18n'; |
24 | import AppLayoutContainer from './containers/layout/AppLayoutContainer'; | 23 | import AppLayoutContainer from './containers/layout/AppLayoutContainer'; |
@@ -54,20 +53,20 @@ webFrame.setVisualZoomLevelLimits(1, 1); | |||
54 | webFrame.setLayoutZoomLevelLimits(0, 0); | 53 | webFrame.setLayoutZoomLevelLimits(0, 0); |
55 | 54 | ||
56 | window.addEventListener('load', () => { | 55 | window.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 |