We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dd3dc08 commit 495c66dCopy full SHA for 495c66d
play.pokemonshowdown.com/js/client-mainmenu.js
@@ -1026,6 +1026,11 @@
1026
return '<button class="select formatselect" name="format" disabled><em>No formats available</em></button>';
1027
}
1028
if (!noChoice) {
1029
+ var defaultFormat = Storage.prefs('defaultformat');
1030
+ if(BattleFormats[defaultFormat]) {
1031
+ this.curFormat = defaultFormat;
1032
+ }
1033
+ else {
1034
this.curFormat = formatid;
1035
if (!this.curFormat) {
1036
if (BattleFormats['gen9randombattle']) {
@@ -1036,6 +1041,7 @@
1041
break;
1037
1042
1038
1043
1044
1039
1045
formatid = this.curFormat;
1040
1046
1047
return '<button class="select formatselect' + (noChoice ? ' preselected' : '') + '" name="format" value="' + formatid + '"' + (noChoice ? ' disabled' : '') + '>' + BattleLog.escapeFormat(formatid) + '</button>';
0 commit comments