Chrome弹出窗口始终位于顶部 [英] Chrome popup window always on top

查看:845
本文介绍了Chrome弹出窗口始终位于顶部的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个可打开弹出窗口的Chrome应用程序。我希望它能够保持在最佳状态,但目前无法这样做。



Google for Chrome 扩展程序会打开一个弹出窗口,该窗口不仅停留在所有窗口之上,而且窗口本身也具有完全自定义的外观。不幸的是,这个扩展中的所有JavaScript都是混淆的,我无法做出正面或反面的结论。



Chrome API 列出了alwaysOnTop布尔值作为Window类型的一部分,但创建和更新功能都不允许更改此属性。

解决方案

这是一个面板类型的窗口。使用 chrome.windows.create >键入:'panel'参数。目前这只适用于dev和canary频道。


I have a Chrome app that opens a popup window. I would like it to be able to stay on top, but am currently unable to do so.

The Chat for Google extension opens a popup window that not only stays on top of all windows, but the window itself also appears to have a completely customized appearance. Unfortunately, all the JavaScript in this extension is obfuscated, and I can't make heads or tails of it.

The Chrome API lists the "alwaysOnTop" boolean as part of the Window type, but neither the create nor the update functions allow for changing this property.

解决方案

It’s a panel type of window. Call chrome.windows.create with a type: 'panel' parameter. This currently only works in the dev and canary channels.

这篇关于Chrome弹出窗口始终位于顶部的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆