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; };