signal-desktop/ts/manage_full_screen_class.ts
2022-05-31 14:42:18 -07:00

10 lines
319 B
TypeScript

// Copyright 2021 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
{
const updateFullScreenClass = (isFullScreen: boolean) => {
document.body.classList.toggle('full-screen', isFullScreen);
};
updateFullScreenClass(window.isFullScreen());
window.onFullScreenChange = updateFullScreenClass;
}