File tree Expand file tree Collapse file tree 2 files changed +11
-9
lines changed
Expand file tree Collapse file tree 2 files changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ wrap(function filter() {
1010 page : 'Library' ,
1111 } ) ;
1212 const splitBaseGen = settings . register ( {
13- name : 'Split Based and Generated ' ,
13+ name : 'Split Based and Token ' ,
1414 key : 'underscript.deck.filter.split' ,
1515 default : true ,
1616 onChange : applyLook ,
@@ -43,9 +43,8 @@ wrap(function filter() {
4343 if ( ! setting . value ( ) && splitBaseGen . value ( ) && ! $ ( '#baseRarityInput' ) . length ) {
4444 // Add BASE
4545 $ ( '#commonRarityInput' ) . parent ( ) . before ( createButton ( 'BASE' ) , ' ' ) ;
46- // GENERATED
4746 $ ( '#baseGenInput' ) . prop ( 'checked' , true ) . prop ( 'disabled' , true ) . parent ( )
48- . after ( createButton ( 'GENERATED ' ) ) ;
47+ . after ( createButton ( 'TOKEN ' ) ) ;
4948 } else if ( setting . value ( ) || ! splitBaseGen . value ( ) ) {
5049 $ ( '#baseGenInput' ) . prop ( 'checked' , false ) . prop ( 'disabled' , false ) ;
5150 $ ( '.customRarityInput' ) . parent ( ) . remove ( ) ;
@@ -76,7 +75,7 @@ wrap(function filter() {
7675 if ( card . rarity === 'BASE' && ! card . shiny && ! $ ( '#baseRarityInput' ) . prop ( 'checked' ) ) {
7776 return true ;
7877 }
79- if ( card . rarity === 'GENERATED ' && ! $ ( '#generatedRarityInput' ) . prop ( 'checked' ) ) {
78+ if ( card . rarity === 'TOKEN ' && ! $ ( '#generatedRarityInput' ) . prop ( 'checked' ) ) {
8079 return true ;
8180 }
8281 }
Original file line number Diff line number Diff line change 11eventManager . on ( ':loaded' , ( ) => {
2- globalSet ( 'translateElement ', function translateElement ( ... args ) {
2+ if ( global ( 'translationReady ', { throws : false } ) ) {
33 eventManager . singleton . emit ( 'translation:loaded' ) ;
4- return this . super ( ...args ) ;
5- } , {
6- throws : false ,
7- } ) ;
4+ } else {
5+ document . addEventListener ( 'translationReady' , ( ) => {
6+ eventManager . singleton . emit ( 'translation:loaded' ) ;
7+ } , {
8+ once : true ,
9+ } ) ;
10+ }
811} ) ;
You can’t perform that action at this time.
0 commit comments