Skip to content

Commit

Permalink
Merge pull request #14 from aaronmader/patch-1
Browse files Browse the repository at this point in the history
Update example.js
  • Loading branch information
okamototk committed Jun 16, 2014
2 parents 8ea13a9 + 4d0f69f commit 07e258c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions example/example.js
Expand Up @@ -37,7 +37,7 @@ $(document).bind("mobileinit", function(){
var parameter = page_popup_bubble;

bubble.hasHashParameter = function() {
return location.hash == "" && location.href.indexOf(parameter) == location.href.length-1;
return location.hash != "" && location.href.indexOf(parameter) == location.href.length - parameter.length;
};

bubble.setHashParameter = function() {
Expand Down Expand Up @@ -69,4 +69,4 @@ $(document).bind("mobileinit", function(){
bubble.showIfAllowed();
}, 1000 /** delay to show the bubble */ );
});
});
});

0 comments on commit 07e258c

Please sign in to comment.