質問

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?

役に立ちましたか?

解決

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!

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top