Domanda

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?

È stato utile?

Soluzione

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!

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top