Question

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?

Was it helpful?

Solution

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!

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top