Start Devtools with custom options in Electron

Asked

Viewed 85 times

0

In my application I have a function developerMode() who makes the Devtools call

function developerMode() {
  var r = confirm(lang.developerModeConfirm);
  if (r == true) {
    remote.getCurrentWindow().toggleDevTools();
    app.mode = 'dev'
    console.log(lang.developerModeOn)
  } else {
    console.log(lang.developerModeOff)
  }
}

Would it be possible for this function to start Devtools with some default settings? Is there a way to enable only the Console? I think native Devtools is very powerful and does what I need, but it has nothing to do visually with my application, I didn’t want to have to rewrite a custom console.

1 answer

0

Browser other questions tagged

You are not signed in. Login or sign up in order to post.