Skip to content

Commit

Permalink
Merge pull request #103 from glogiotatidis/1140476
Browse files Browse the repository at this point in the history
[bug 1140476] If we don't have user's country remove geolocated snippets
  • Loading branch information
glogiotatidis committed Mar 10, 2015
2 parents 025339e + 5faf9f2 commit f7c7447
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions snippets/base/templates/base/includes/snippet_js.html
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,16 @@
}
);
}
else {
// If we don't have the user's country, remove all geolocated snippets.
// Bug 1140476
snippets = snippets.filter(
function(snippet) {
return !snippet.parentNode.dataset.country;
}
)
}


// FxAccount is already setup skip snippets that link to
// about:accounts
Expand Down

0 comments on commit f7c7447

Please sign in to comment.