Hide title bar on macOS
This commit is contained in:
parent
b672d33f25
commit
ddebbf8121
15 changed files with 297 additions and 24 deletions
17
ts/set_os_class.ts
Normal file
17
ts/set_os_class.ts
Normal file
|
@ -0,0 +1,17 @@
|
|||
// Copyright 2021 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
$(document).ready(() => {
|
||||
let className: string;
|
||||
if (window.Signal.OS.isWindows()) {
|
||||
className = 'os-windows';
|
||||
} else if (window.Signal.OS.isMacOS()) {
|
||||
className = 'os-macos';
|
||||
} else if (window.Signal.OS.isLinux()) {
|
||||
className = 'os-linux';
|
||||
} else {
|
||||
throw new Error('Unexpected operating system; not applying ');
|
||||
}
|
||||
|
||||
$(document.body).addClass(className);
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue