mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-13 04:28:41 -09:00
index: expose config and plugins to plugin authors in electron process
This commit is contained in:
parent
4863fe581b
commit
e8eb170204
1 changed files with 4 additions and 0 deletions
4
index.js
4
index.js
|
|
@ -13,6 +13,10 @@ const config = require('./config');
|
|||
config.init();
|
||||
const plugins = require('./plugins');
|
||||
|
||||
// expose to plugins
|
||||
app.config = config;
|
||||
app.plugins = plugins;
|
||||
|
||||
if (isDev) {
|
||||
console.log('running in dev mode');
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue