Pregunta

I am debugging my Chrome Packaged App(not legacy app), every time I reload my app, the pop-up inspector(developer) window disappear, I have to right-click my app window and select "inspect element" again. Is there a way to "pin" the inspector window or open it automatically when reloading app?

¿Fue útil?

Solución

If you give your application window an 'id', it will remember the size, position, as well as whether dev tools was open when last launched.

i.e.:

chrome.app.window.create('index.html', {
  width: w,
  height: h,
  id: 'MyAppId'  // add this
}, onWindowCreate);

I find this makes application development a lot easier!

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top