wavetree
wavetree

Reputation: 1557

Chrome popup window always on top

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.

Upvotes: 3

Views: 5696

Answers (1)

Josh Lee
Josh Lee

Reputation: 177520

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.

Upvotes: 1

Related Questions