RSS Git Download  Clone
Raw View History
Blames found: 10 Mode: javascript Binary: false


Hang on, we reloading big blames...
const configstore = require('configstore');
const pkg = require('../../package.json');
const conf = new configstore(pkg.name);
let currentTranslation = conf.get('current-translation') if (currentTranslation === undefined) { currentTranslation = 'en' }
global.p3xre = {
dev: process.env.NODE_ENV === 'development',
iconFile: `${__dirname}/images/256x256.png`, mainWindow: undefined, pkg: pkg, indexHtml: 'file://' + __dirname + '/window/main/index.html',
strings: require('../strings/' + currentTranslation + '/index'), currentTranslation: currentTranslation,
conf: conf,
} global.p3xre.setVisible = (visible = true) => { if (visible === null) { visible = true; } if (global.p3xre.mainWindow !== undefined) { if (visible) { global.p3xre.mainWindow.show(); } else { global.p3xre.mainWindow.hide(); } } //global.ngivr.recreateMenus(); }