Browse Source

Layout.js: reuse constant (#2778)

XhmikosR 4 năm trước cách đây
mục cha
commit
13c857679b
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      build/js/Layout.js

+ 1 - 1
build/js/Layout.js

@@ -179,7 +179,7 @@ class Layout {
   }
 
   _isFooterFixed() {
-    return $('.main-footer').css('position') === 'fixed'
+    return $(Selector.FOOTER).css('position') === 'fixed'
   }
 
   // Static