Fixed condition that should be notted.

This commit is contained in:
Matthew Aguirre
2016-07-14 12:01:47 -04:00
committed by Michael Rose
parent 928c312bba
commit 0380f67873
+1 -1
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);