Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
保持应用可见:我希望应用在用户点击关闭时可见(不是 X,但他们已经移动到不同的窗口),例如 chromeos 的音乐播放器。
不集中时检测:不言自明 遗憾的是,我无法提供代码示例,因为我不知道从哪里开始。
将“alwaysOnTopWindows”权限添加到您的清单。然后创建一个像这样的窗口:
chrome.app.window.create("index.html", { alwaysOnTop: true })