I'm develop Google Chrome extension. I'm using browser_action with popup windows. I would like to stay always visible popup when switch tabs?

有帮助吗?

解决方案

popup will auto close when lose focus.

you can use panel instead.

chrome.windows.create({ url: 'http://mobile.google.com', width: 320, height: 480, type: 'panel' })

It will keep opening across all tabs.

其他提示

This is impossible, the popup will always close as soon as it loses focus.

If you need an always visible UI, your only option is, probably, injecting it into all pages.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top