Permalink
Browse files

Join reprints in explore

fixes #173
  • Loading branch information...
Manuel-777 committed Feb 1, 2019
1 parent a4cc1c9 commit d499e80915ab0ed1277ca9c7229d3eb84afe4f07
Showing with 6 additions and 1 deletion.
  1. +2 −0 window_main/explore.js
  2. +4 −1 window_main/renderer.js
@@ -381,6 +381,8 @@ function ladderLoadMore(loadMore, ownedWildcards) {
});

$('.'+index).on('click', function() {
_deck.mainDeck = removeDuplicates(_deck.mainDeck);
_deck.sideboard = removeDuplicates(_deck.sideboard);
open_deck(_deck, 1);
$('.moving_ux').animate({'left': '-100%'}, 250, 'easeInOutCubic');
});
@@ -20,7 +20,8 @@ global
compare_cards,
windowBackground,
windowRenderer,
deck_count_types
deck_count_types,
removeDuplicates
*/

const electron = require('electron');
@@ -449,6 +450,8 @@ ipc.on('open_course_deck', function (event, arg) {
arg.sideboard.sort(compare_cards);
console.log(arg);

arg.mainDeck = removeDuplicates(arg.mainDeck);
arg.sideboard = removeDuplicates(arg.sideboard);
open_deck(arg, 1);
});

0 comments on commit d499e80

Please sign in to comment.