Explorar o código

Layout.js: Simplify else

XhmikosR %!s(int64=4) %!d(string=hai) anos
pai
achega
3478837aab
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      build/js/Layout.js

+ 1 - 1
build/js/Layout.js

@@ -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) {