2021-09-16 15:52:56 +00:00
|
|
|
// 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');
|
|
|
|
}
|
|
|
|
|
2021-10-07 23:28:47 +00:00
|
|
|
if (window.SignalContext.renderWindow) {
|
|
|
|
window.SignalContext.renderWindow();
|
2023-03-14 15:55:31 +00:00
|
|
|
} else if (window.SignalContext.log) {
|
2021-10-07 23:28:47 +00:00
|
|
|
window.SignalContext.log.error('renderWindow is undefined!');
|
|
|
|
}
|