According to that API definition: https://developer.chrome.com/extensions/windows.html#type-Window window has a (new) property called 'alwaysOnTop' (As I understand, it means that even if the user clicked somewhere else on the screen, this window sticks to the front, like 'chat for google' does).
I can't get how to create a window which has this property (chrome.window.create() doesn't contain it among the parameters it gets). I've tried several ways, like using the function that create gets and other options, but none worked. The console messages didn't help me to figure out what the right way is.
Could someone please post a short example that demonstrate a creation of such a window ?
alwaysOnTop
is not a valid argument for chrome.windows.create
.
Indeed, it is mentioned in the documentation, but listened under the Window
type, which describes an object which is passed to many of the chrome.windows
API method callbacks.
Compare chrome.windows.create#createData
and the Window
type's properties.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With