v150 · Window Management
Window State Controls
Probe the proposed Promise-returning window-state methods and inspect exposed implementations. Each button invokes await window.maximize(), minimize() or restore() and reports whether the platform resolved it, rejected it, or did not expose the method in this build/context.
Live capability probe
Current display-state: reading…
No calls yet — press a button above to invoke the real API.
// Additional Windowing Controls — window state (installed PWA + window-management permission)
try {
await window.maximize(); // resolves once the window is maximized
} catch (err) {
// NotAllowedError: policy/permission, not installed, no activation, or failed operation
console.log('maximize() rejected:', err.name, err.message);
}
await window.minimize();
await window.restore();
// Read the resulting state back — no permission required:
const isMax = window.matchMedia('(display-state: maximized)').matches;