From 4cc502ef6fb8c0f4ca83f90360fc261b2c4782f0 Mon Sep 17 00:00:00 2001 From: Stephane Caron Date: Wed, 6 May 2015 20:32:09 -0400 Subject: [PATCH] Fix post test --- js/jquery.prettyPhoto.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/jquery.prettyPhoto.js b/js/jquery.prettyPhoto.js index 806b53c..9ecf9d1 100644 --- a/js/jquery.prettyPhoto.js +++ b/js/jquery.prettyPhoto.js @@ -885,7 +885,7 @@ function getHashtag(){ var url = location.href; hashtag = (url.indexOf('#prettyPhoto') !== -1) ? decodeURI(url.substring(url.indexOf('#prettyPhoto')+1,url.length)) : false; - hashtag = hashtag.replace(/<|>/g,''); + if(hashtag){ hashtag = hashtag.replace(/<|>/g,''); } return hashtag; };