mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-10-01 23:32:02 -05:00
Fix lint errors
This commit is contained in:
@@ -502,7 +502,7 @@
|
||||
if (window.Notification) {
|
||||
buf += '<p><label class="optlabel"><input type="checkbox" name="temporarynotifications"' + (Dex.prefs('temporarynotifications') ? ' checked' : '') + ' /> Notifications disappear automatically</label></p>';
|
||||
}
|
||||
buf +=' <p><label class="optlabel"><input type="checkbox" name="refreshprompt"' + (Dex.prefs('refreshprompt') ? ' checked' : '') + '> Prompt on refresh</label></p>';
|
||||
buf += '<p><label class="optlabel"><input type="checkbox" name="refreshprompt"' + (Dex.prefs('refreshprompt') ? ' checked' : '') + '> Prompt on refresh</label></p>';
|
||||
|
||||
var tours = Dex.prefs('tournaments') || 'notify';
|
||||
buf += '<p><label class="optlabel">Tournaments: <select name="tournaments"><option value="notify"' + (tours === 'notify' ? ' selected="selected"' : '') + '>Notifications</option><option value="nonotify"' + (tours === 'nonotify' ? ' selected="selected"' : '') + '>No Notifications</option><option value="hide"' + (tours === 'hide' ? ' selected="selected"' : '') + '>Hide</option></select></label></p>';
|
||||
|
||||
@@ -1579,7 +1579,8 @@ class BattleTooltips {
|
||||
abilityData.baseAbility = clientPokemon.baseAbility;
|
||||
}
|
||||
} else {
|
||||
const template = this.battle.dex.getTemplate(clientPokemon.getSpecies() || (serverPokemon && serverPokemon.species) || '');
|
||||
const species = clientPokemon.getSpecies() || (serverPokemon && serverPokemon.species) || '';
|
||||
const template = this.battle.dex.getTemplate(species);
|
||||
if (template.exists && template.abilities) {
|
||||
abilityData.possibilities = [template.abilities['0']];
|
||||
if (template.abilities['1']) abilityData.possibilities.push(template.abilities['1']);
|
||||
|
||||
Reference in New Issue
Block a user