mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 20:26:24 +00:00
Add extra pixel to titlebar on Windows 11
This commit is contained in:
4
ts/OS.ts
4
ts/OS.ts
@@ -16,3 +16,7 @@ export const isWindows = (minVersion?: string): boolean => {
|
||||
|
||||
return is.undefined(minVersion) ? true : semver.gte(osRelease, minVersion);
|
||||
};
|
||||
export const isWindows11 = (): boolean => {
|
||||
// See https://docs.microsoft.com/en-us/answers/questions/586619/windows-11-build-ver-is-still-10022000194.html
|
||||
return isWindows('10.0.22000');
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user