Explorar el Código

Layout.js: Simplify else

XhmikosR hace 4 años
padre
commit
3478837aab
Se han modificado 1 ficheros con 1 adiciones y 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) {