From 9fc760bc4cffca6d269d62b7300242efef3f1d4d Mon Sep 17 00:00:00 2001 From: Shelley Vohr Date: Tue, 23 Jul 2024 22:40:59 +0200 Subject: [PATCH] docs: note macOS fullscreen events in fullscreen query (#42997) docs: note macOS fullscreen events in fs query --- docs/api/browser-window.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/api/browser-window.md b/docs/api/browser-window.md index 9f7ecb646819..3dc7925b6e37 100644 --- a/docs/api/browser-window.md +++ b/docs/api/browser-window.md @@ -690,6 +690,8 @@ Sets whether the window should be in fullscreen mode. Returns `boolean` - Whether the window is in fullscreen mode. +**Note:** On macOS, fullscreen transitions take place asynchronously. When querying for a BrowserWindow's fullscreen status, you should ensure that either the ['enter-full-screen'](browser-window.md#event-enter-full-screen) or ['leave-full-screen'](browser-window.md#event-leave-full-screen) events have been emitted. + #### `win.setSimpleFullScreen(flag)` _macOS_ * `flag` boolean