Pergunta

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?

Foi útil?

Solução

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 em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top