Preload fonts, load scripts after body
This commit is contained in:
parent
8b9543aa67
commit
a88560183b
5 changed files with 61 additions and 59 deletions
|
@ -1,10 +1,10 @@
|
|||
// Copyright 2021 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
$(document).ready(() => {
|
||||
{
|
||||
const updateFullScreenClass = (isFullScreen: boolean) => {
|
||||
$(document.body).toggleClass('full-screen', isFullScreen);
|
||||
document.body.classList.toggle('full-screen', isFullScreen);
|
||||
};
|
||||
updateFullScreenClass(window.isFullScreen());
|
||||
window.onFullScreenChange = updateFullScreenClass;
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue