aboutsummaryrefslogtreecommitdiffstats
path: root/src/app.js
diff options
context:
space:
mode:
authorLibravatar vantezzen <properly@protonmail.com>2019-08-22 11:04:50 +0200
committerLibravatar vantezzen <properly@protonmail.com>2019-08-22 11:04:50 +0200
commit8440d51cef61297eb34a193d6a3ad420a0947340 (patch)
treec92b9f96dbcc570ddcfbd595c9dca97421b74ea9 /src/app.js
parentAdd development info to README (diff)
downloadferdium-app-8440d51cef61297eb34a193d6a3ad420a0947340.tar.gz
ferdium-app-8440d51cef61297eb34a193d6a3ad420a0947340.tar.zst
ferdium-app-8440d51cef61297eb34a193d6a3ad420a0947340.zip
Add support to use custom servers
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,