chrome.windows alwaysOnTop?

130 views
Skip to first unread message

Nathan Pierce

unread,
Oct 20, 2022, 7:44:06 PM10/20/22
to Chromium Extensions
Hi, I'm not seeing a way to set Window.alwaysOnTop. Can anyone recommend how to toggle this for a window?

Stefan Van Damme

unread,
Oct 21, 2022, 3:41:31 AM10/21/22
to Chromium Extensions, nors...@gmail.com
Hi there,

Have you tried something like this:
function createWindow(){
  chrome.windows.create({
      url: chrome.extension.getURL("welcome.html"),
      type: "panel",
      focused: true,
      top: 50,
      left: 100,
      width: 400,
      height: 300
    },
    window => {
      window.WindowType = "app";
      window.alwaysOnTop = true;
    }
  );
}


Thanks,
Stefan vd

wOxxOm

unread,
Oct 21, 2022, 4:23:27 AM10/21/22
to Chromium Extensions, stefa...@gmail.com, nors...@gmail.com
There's no way. It was intentionally disabled.
Reply all
Reply to author
Forward
0 new messages