Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
tty.onclosed = (code, signal) => {
tty.ondisconnected = () => {};
signale.complete("Terminal exited", code, signal);
app.quit();
};
tty.onopened = () => {
export function logComplete(message: string) {
signale.complete(message);
}
(err, stats) => {
signale.complete(stats.toString(tasks.WEBPACK_STATS_OPTIONS))
if (err || stats.hasErrors()) {
signale.error('Webpack compilation error')
return
}
signale.success('Webpack compilation done')
buildChrome()
buildFirefox()
tasks.copyPhabricator()
triggerReload()
}
)
backgroundThrottling: false,
webSecurity: true,
nodeIntegration: true,
nodeIntegrationInSubFrames: false,
allowRunningInsecureContent: false,
experimentalFeatures: settings.experimentalFeatures || false
}
});
win.loadURL(url.format({
pathname: path.join(__dirname, 'ui.html'),
protocol: 'file:',
slashes: true
}));
signale.complete("Frontend window created!");
win.show();
if (!settings.allowWindowed) {
win.setResizable(false);
} else if (!require(lastWindowStateFile)["useFullscreen"]) {
win.setFullScreen(false);
}
signale.watch("Waiting for frontend connection...");
}
app.on('before-quit', () => {
tty.close();
Object.keys(extraTtys).forEach(key => {
if (extraTtys[key] !== null) {
extraTtys[key].close();
}
});
signale.complete("Shutting down...");
});
term.onclosed = (code, signal) => {
term.ondisconnected = () => {};
term.wss.close();
signale.complete(`TTY exited at ${port}`, code, signal);
extraTtys[term.port] = null;
term = null;
};
term.onopened = pid => {