Window Management API
experimental
firefoxでは使えない
オリジンごとに初回に許可を出すっぽい
code:js
screenDetails = await window.getScreenDetails();
console.log(screenDetails)
// Return the number of screens
const noOfScreens = screenDetails.screens.length;
log(noOfScreens) // 1
https://gyazo.com/c516e1aec7b3c392d8444bad85b8c5ed
code:js
const {currentScreen} = screenDetails
console.log(currentScreen)
スクリーンの情報がかなり取れる