feat: bring --enable-logging functionality in line with Chromium (#25089)
Co-authored-by: Jeremy Rose <jeremya@chromium.org>
This commit is contained in:
parent
c841247815
commit
8ccab4ce91
18 changed files with 553 additions and 54 deletions
|
@ -2,6 +2,11 @@ const { app } = require('electron');
|
|||
const http = require('http');
|
||||
const v8 = require('v8');
|
||||
|
||||
if (app.commandLine.hasSwitch('boot-eval')) {
|
||||
// eslint-disable-next-line no-eval
|
||||
eval(app.commandLine.getSwitchValue('boot-eval'));
|
||||
}
|
||||
|
||||
app.whenReady().then(() => {
|
||||
const server = http.createServer((req, res) => {
|
||||
const chunks = [];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue