app: expose plugins and config to window which plugin authors might want

This commit is contained in:
Guillermo Rauch 2016-07-16 11:54:21 -07:00
parent 450e337e11
commit 87bac682a7

View file

@ -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()));