INNER CODE UNIT · JavaScript
startRepl
weolar/miniblink49 · electron/lib/default_app/main.js:157
function startRepl() {
if (process.platform === 'win32') {
console.error('Electron REPL not currently supported on Windows');
process.exit(1);
return;
}
const repl = require('repl');
repl.start('> ').on('exit', () => {
process.exit(0);
})
}
// Start the specified app if there is one specified in command line, otherwise
// start the default app.
if (option.file && !option.webdriver) {
const file = option.file;
const protocol = url.parse(file).protocol;