signal-desktop/ts/windows/init.ts

14 lines
448 B
TypeScript
Raw Normal View History

// Copyright 2021 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
2023-02-23 21:32:19 +00:00
document.body.classList.add(window.SignalContext.OS.getClassName());
if (window.SignalContext.OS.hasCustomTitleBar()) {
document.body.classList.add('os-has-custom-titlebar');
}
if (window.SignalContext.renderWindow) {
window.SignalContext.renderWindow();
2023-03-14 15:55:31 +00:00
} else if (window.SignalContext.log) {
window.SignalContext.log.error('renderWindow is undefined!');
}