We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fab45de commit 58cf109Copy full SHA for 58cf109
packages/ide/src/fill/electron.ts
@@ -394,9 +394,15 @@ class BrowserWindow extends EventEmitter {
394
if (typeof (window as any)["fullScreen"] !== "undefined") {
395
return (window as any)["fullScreen"];
396
}
397
-
398
// tslint:enable no-any
399
- return false;
+
+ try {
400
+ return window.matchMedia("(display-mode: fullscreen)").matches;
401
+ } catch (error) {
402
+ logger.error(error.message);
403
404
+ return false;
405
+ }
406
407
408
public isFocused(): boolean {
0 commit comments