Cleaned up dependencies; changed dist commands; start message improvements
This commit is contained in:
@@ -41,14 +41,14 @@ const loadIPCServer = (fpath) => {
|
||||
});
|
||||
|
||||
ipcServer.listen(ipcServerPort, () => {
|
||||
console.debug(`IPCServer is up on port ${ipcServerPort}`);
|
||||
console.debug("IPCServer (start) : Started on port ", ipcServerPort, " .");
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
const isIPCServerUp = async () => {
|
||||
const response = await fetch(`${ipcServerURL}/is-up`).catch((err) => {
|
||||
console.debug(err);
|
||||
console.debug("IPCServer (status) : Not up; okay to start.");
|
||||
return {
|
||||
text: () => {
|
||||
return "no";
|
||||
@@ -78,4 +78,4 @@ module.exports = {
|
||||
isIPCServerUp: isIPCServerUp,
|
||||
sendFilesToIPC: sendFilesToIPC,
|
||||
}
|
||||
};
|
||||
};
|
@@ -1,9 +1,3 @@
|
||||
try {
|
||||
require('electron-reloader')(module)
|
||||
} catch(error) {
|
||||
console.log(error);
|
||||
}
|
||||
|
||||
const { app, ipcMain } = require('electron');
|
||||
|
||||
const { newton } = require('./app');
|
||||
@@ -86,4 +80,4 @@ process.on('unhandledRejection', function(error = {}) {
|
||||
if (error.stack != null) {
|
||||
console.log(error.stack);
|
||||
}
|
||||
});
|
||||
});
|
Reference in New Issue
Block a user