mirror of
https://git.tuxpa.in/a/code-server.git
synced 2024-12-28 05:05:25 +00:00
Fix full screen detection for Chromium
This commit is contained in:
parent
fab45dedcd
commit
58cf109a83
@ -394,9 +394,15 @@ class BrowserWindow extends EventEmitter {
|
||||
if (typeof (window as any)["fullScreen"] !== "undefined") {
|
||||
return (window as any)["fullScreen"];
|
||||
}
|
||||
|
||||
// tslint:enable no-any
|
||||
return false;
|
||||
|
||||
try {
|
||||
return window.matchMedia("(display-mode: fullscreen)").matches;
|
||||
} catch (error) {
|
||||
logger.error(error.message);
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public isFocused(): boolean {
|
||||
|
Loading…
Reference in New Issue
Block a user