Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

chrome extension create window: alwaysOnTop

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 ?

like image 653
Subway Avatar asked Sep 17 '25 20:09

Subway


1 Answers

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.

like image 103
Rob W Avatar answered Sep 23 '25 11:09

Rob W