Fixed condition that should be notted.

This commit is contained in:
Matthew Aguirre 2016-07-14 10:24:10 -04:00
parent e5147f8de9
commit cd79ac9a64

View file

@ -11,7 +11,7 @@ $(document).ready(function(){
$(".sticky").Stickyfill();
var stickySideBar = function(){
var show = $(".author__urls-wrapper button").length === 0 ? $(window).width() > 1024 : $(".author__urls-wrapper button").is(":visible");
var show = $(".author__urls-wrapper button").length === 0 ? $(window).width() > 1024 : !$(".author__urls-wrapper button").is(":visible");
// console.log("has button: " + $(".author__urls-wrapper button").length === 0);
// console.log("Window Width: " + windowWidth);
// console.log("show: " + show);