Skip to content

Commit

Permalink
fixing page check
Browse files Browse the repository at this point in the history
  • Loading branch information
evantahler committed Oct 23, 2011
1 parent f64b5f8 commit 582d94a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/app.js
Expand Up @@ -16,7 +16,7 @@ app.partialMap = {

app.init = function(){
$('#header > #container').load(app.partialMap.header);
if(window.location.hash != null){
if(window.location.hash != null && window.location.hash != "" && window.location.hash != "#"){
var hash = window.location.hash.replace(/#/gm,"");
if(app.partialMap[hash] == undefined){
alert("I'm sorry, but I can't find the "+hash+" page.");
Expand Down

0 comments on commit 582d94a

Please sign in to comment.