File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed
Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change 11# UnderScript Changelog
22
3+ ## Version 0.54.0 (2023-07-08)
4+ ### New Features
5+ 1 . Import deck via URL
6+
37## Version 0.53.1 (2023-07-02)
481 . Fixed changelog
591 . Fixed friendship ranking not loading sometimes
Original file line number Diff line number Diff line change 1+ import eventManager from '../../../utils/eventManager.js' ;
2+ import { global , globalSet } from '../../../utils/global.js' ;
3+
4+ // TODO: Remove this when fixed
5+ eventManager . on ( ':loaded:Decks' , ( ) => {
6+ globalSet ( 'ajaxUrl' , 'DecksConfig' ) ;
7+ } ) ;
8+
9+ eventManager . on ( 'Deck:Loaded' , ( ) => {
10+ const params = new URLSearchParams ( location . search ) ;
11+ const deckCode = params . get ( 'deckCode' ) || params . get ( 'deck' ) ;
12+ if ( ! deckCode ) return ;
13+
14+ global ( 'loadDeckCode' ) ( deckCode ) ;
15+ } ) ;
You can’t perform that action at this time.
0 commit comments