Programmatically enable panels in chrome chrome: // flags / # enable-panels

I know how to manually enable panels in Chrome. I wrote chrome extensions that use panels. Unfortunately, users must first enable this manually.

chrome.windows.create({type:"panel", url: temp, width:pos.w,height:pos.h, top:pos.top, left:pos.left}, function (_win) {
    win = _win.id;
});

Question: is it possible to enable the panel function for expansion without having to do it manually?

+4
source share
2 answers

You cannot inside an extension, a period.

Chrome flags are experimental features, and you should never assume that they are present.

- , Chrome, --enable-panels; (Google , ).

, chrome.tabs.create chrome://flags/#enable-panels , .

+5

, Chrome OS apps 45. . alwaysOnTop (alwaysOnTopWindows). .

chrome.app.window.create("test.html", { alwaysOnTop: true, type: "panel" })
+2

Source: https://habr.com/ru/post/1612496/


All Articles