Layout.js: Simplify else

pull/2751/head
XhmikosR 2020-06-01 09:29:33 +03:00
parent cb85af826e
commit 3478837aab
1 changed files with 1 additions and 1 deletions

View File

@ -116,7 +116,7 @@ const Layout = ($ => {
fixLoginRegisterHeight() {
if ($(Selector.LOGIN_BOX + ', ' + Selector.REGISTER_BOX).length === 0) {
$('body, html').css('height', 'auto')
} else if ($(Selector.LOGIN_BOX + ', ' + Selector.REGISTER_BOX).length !== 0) {
} else {
const boxHeight = $(Selector.LOGIN_BOX + ', ' + Selector.REGISTER_BOX).height()
if ($('body').css('min-height') !== boxHeight) {