diff --git a/example/example.js b/example/example.js index e250e0f..5b5dae6 100644 --- a/example/example.js +++ b/example/example.js @@ -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() { @@ -69,4 +69,4 @@ $(document).bind("mobileinit", function(){ bubble.showIfAllowed(); }, 1000 /** delay to show the bubble */ ); }); -}); \ No newline at end of file +});