From 87bac682a738d5ce7dd9ad7e2321005cbead46bb Mon Sep 17 00:00:00 2001 From: Guillermo Rauch Date: Sat, 16 Jul 2016 11:54:21 -0700 Subject: [PATCH] app: expose `plugins` and `config` to window which plugin authors might want --- app/lib/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/lib/index.js b/app/lib/index.js index 9312a8f4..924d301b 100644 --- a/app/lib/index.js +++ b/app/lib/index.js @@ -28,6 +28,8 @@ const store_ = createStore( window.__defineGetter__('store', () => store_); window.__defineGetter__('rpc', () => rpc); +window.__defineGetter__('config', () => config); +window.__defineGetter__('plugins', () => plugins); // initialize config store_.dispatch(loadConfig(config.getConfig()));