chrome extension detect second monitor

Solutions on MaxInterview for chrome extension detect second monitor by the best coders in the world

showing results for - "chrome extension detect second monitor"
Marco
09 Jan 2017
1chrome.system.display.getInfo((screens) => {
2  screens.forEach((screen) => {
3    chrome.app.window.create("app.html", {
4      outerBounds: screen.workArea // It so happens it's formatted as expected
5    });
6  });
7});
8
9"system.display" permission required
10
11If you pass outerBounds.top/outerBounds.left properties to chrome.app.window.create, those actually refer to the combined coordinate space, not the current monitor. Chrome will likely clamp/shift what you pass to it to fit in the screen.