Skip to content

Commit

Permalink
More work
Browse files Browse the repository at this point in the history
  • Loading branch information
Emupedia-Bot committed Oct 5, 2024
1 parent c3d7ace commit dff8f1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -1021,7 +1021,7 @@
// noinspection JSUnresolvedFunction
index_selected = parseInt($.url().param('game'), 10) || 0;
// noinspection JSUnresolvedFunction
var game_selected = typeof $.url().param('gamev1') !== 'undefined' ? $.url().param('gamev1') : $list_dropdown_v1.find('option[value="'+ index_selected +'"]').prop('selected', true).attr('selected', true).data('game-id');
var game_selected = typeof $.url().param('gamev1') !== 'undefined' ? $list_dropdown_v1.find('option[data-game-id="'+ $.url().param('gamev1') +'"]').prop('selected', true).attr('selected', true).data('game-id') : $list_dropdown_v1.find('option[value="'+ index_selected +'"]').prop('selected', true).attr('selected', true).data('game-id');

// noinspection DuplicatedCode
for (var game in games_v1['games']) {
Expand Down

0 comments on commit dff8f1b

Please sign in to comment.