How to build an chrome extension like Google Hangouts

让人想犯罪 __ 提交于 2019-12-17 15:34:52

问题


The Google Hangouts extension has a panel that shows up outside of the Chrome UI.

It is sort of like a notification but not. I don't see anything in the Extension Developer Docs that describes an API to make this work. Is this a Google-specific hack they're doing? Is there something in the experimental APIs that I'm missing?


回答1:


It is an options of chrome.windows.create. Make sure you set type to panel.

chrome.windows.create({ url: 'https://mobile.twitter.com/', type: 'panel' });

panel may not be supported on all platforms and you may have to specifically enable panels in Chrome Flags chrome://flags/#enable-panels.



来源:https://stackoverflow.com/questions/9487446/how-to-build-an-chrome-extension-like-google-hangouts

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!