Start DevTools with custom options on Electron

0

In my application I have a developerMode() function that calls the DevTools

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)
  }
}

Could this function start DevTools with some default settings? Is there a way to only enable the Console? I think the native DevTools is very powerful and does what I need, however it has nothing to do visually with my application, I did not want to have to rewrite a custom console.

    
asked by anonymous 03.08.2017 / 19:01

1 answer

0

Hello,

From what I saw in the electron docs loads all devtools, the most you can do is add some extension, maybe have some that only use the console: [ link

    
04.08.2017 / 16:53