- redis-ui.git
- src
- app.js
This file ( 1kB ) exceeds the allowed full mode (48 kb) size.
The editor full hight is disabled, only scrolling is allowed..
If you wish to edit a file, it is recommended to use the scroll mode as some users do not like the full height
mode, although some users like it.
process.on("unhandledRejection", (err, promise) => {
console.error(new Date().toLocaleString(), 'unhandledRejection', err, promise);
});
process.on('uncaughtException', function (err) {
console.error(new Date().toLocaleString(), 'uncaughtException', err);
process.exit(-1)
});
const boot = require('p3x-redis-ui-server/src/lib/boot')
boot()
require('./electron/global.js');
const {app, ipcMain} = require('electron')
//app.commandLine.appendSwitch("ignore-certificate-errors");
if (process.env.NODE_ENV === 'development') {
app.commandLine.appendSwitch('remote-debugging-port', '9222')
}
const gotTheLock = app.requestSingleInstanceLock()
if (!gotTheLock) {
app.quit()
return
}
app.on('second-instance', (event, commandLine, workingDirectory) => {
// Someone tried to run a second instance, we should focus our window.
global.p3xre.setVisible(true);
//global.p3xre.mainWindow.webContents.reload();
})
const createWindow = require('./electron/module/create/window');
app.on('ready', () => {
createWindow();
// ngivrSession.init();
});
app.on('window-all-closed', function () {
if (process.platform !== 'darwin') {
app.quit();
}
});
app.on('activate', function () {
if (global.p3xre.mainWindow === null) {
createWindow();
}
});