Skip to content

Commit f7b0db9

Browse files
committed
fix: storage loads more reliably
1 parent 0af9fc4 commit f7b0db9

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/hooks/deck.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,10 @@ onPage('Decks', function deckPage() {
1919
eventManager.emit('Deck:postChange', obj);
2020
eventManager.emit(`Deck:${data.action}`, obj);
2121
});
22-
// Class change
23-
$('#selectSouls').change(function soulChange() {
24-
// Sometimes it takes too long, so lets change it now
25-
const val = $(this).val();
26-
globalSet('soul', val);
22+
// Soul change
23+
globalSet('updateSoul', function updateSoul() {
24+
this.super();
25+
const val = $('#selectSouls').val();
2726
eventManager.emit('Deck:Soul', val);
2827
});
2928
});

0 commit comments

Comments
 (0)