if (navigator.windowControlsOverlay.visible) {
// Execute code if the controls overlay is visible.
} else {
// Do something else when it isn't visible.
}WindowControlsOverlay: visible property / notebook
WindowControlsOverlay: visible property
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.