From 8fa31153c875e6306539053af98cfa5fe1aa9049 Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Fri, 11 Dec 2015 14:50:10 -0500 Subject: [PATCH] getting url --- js/galleria.min.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/galleria.min.js b/js/galleria.min.js index 3d5f96a..c749a9c 100644 --- a/js/galleria.min.js +++ b/js/galleria.min.js @@ -1,8 +1,8 @@ !function(){jQuery(window).load(function(){ - if(jQuery(location).attr('pathname').indexOf("page_id=18") >= 0){ + if(window.location.href.indexOf("page_id=18") >= 0){ alert(jQuery(location).attr('pathname')); } else { - alert(jQuery(location).attr('pathname')); + alert(window.location.href); } jQuery(".product-category.product .fadeIn").find("mark").remove(); jQuery('.page_item.page-item-16').append(""); -- 2.17.1