Skip to content

Commit

Permalink
Merge pull request #91 from meydjer/master
Browse files Browse the repository at this point in the history
Prevents the "Object doesn't support this property or method" bug on IE7/IE8
  • Loading branch information
scaron committed Aug 28, 2012
2 parents b0db83a + b5475f5 commit 7929cc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/jquery.prettyPhoto.js
Original file line number Diff line number Diff line change
Expand Up @@ -889,7 +889,7 @@
};

function getHashtag(){
url = location.href;
var url = location.href;
hashtag = (url.indexOf('#prettyPhoto') !== -1) ? decodeURI(url.substring(url.indexOf('#prettyPhoto')+1,url.length)) : false;

return hashtag;
Expand Down

1 comment on commit 7929cc6

@fusionpeach
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't help. I'm still got the same error on IE8. --> "Object doesn't support this property or method"

Please sign in to comment.