Skip to content

Commit

Permalink
Fix tag filtering (fixes opengaming#1220)
Browse files Browse the repository at this point in the history
  • Loading branch information
cxong committed Jan 18, 2021
1 parent 3d002a1 commit 76efd55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion static/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ function filterByTag(curTag) {
for (var i = 0, len = games.length; i < len; i += 1) {
game = games[i];
gameTags = game.getAttribute('data-tags').split(' ');
parent = document.getElementById(game.getAttribute('data-parent'));
parent = document.getElementById(game.getAttribute('data-parent') + 'games');

if (gameTags && gameTags.indexOf(curTag) > -1) {
if (!game.classList.contains('active')) {
Expand Down

0 comments on commit 76efd55

Please sign in to comment.