mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-04-24 07:08:08 -05:00
Properly handle notournaments pref migration
This commit is contained in:
parent
3cd987b7dc
commit
a746edb4aa
|
|
@ -413,9 +413,9 @@ function toId() {
|
|||
return;
|
||||
}
|
||||
// Support legacy tournament setting and migrate to new pref
|
||||
if (Dex.prefs('notournaments')) {
|
||||
if (Dex.prefs('notournaments') !== undefined) {
|
||||
Dex.prefs('tournaments', Dex.prefs('notournaments') ? 'hide' : 'notify');
|
||||
Dex.prefs('notournaments', null);
|
||||
Dex.prefs('notournaments', null, true);
|
||||
}
|
||||
var autojoin = (Dex.prefs('autojoin') || '');
|
||||
var autojoinIds = [];
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user