Skip to content

Commit

Permalink
Change URL when category is clicked (2factorauth#2322)
Browse files Browse the repository at this point in the history
  • Loading branch information
PSGS authored and Carlgo11 committed Jan 20, 2017
1 parent 49974b0 commit 1d3fd37
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@ function openCategory(category) {
$('.category h5 i').removeClass('active-icon');
$('.website-table').css('display', 'none');

// Place the category being viewed in the URL bar
window.location.hash = category;

var icon = $('#' + category + ' h5 i');
icon.addClass('active-icon');
if ($(window).width() > 768) {
Expand Down

0 comments on commit 1d3fd37

Please sign in to comment.