mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-08-27 21:48:31 -05:00
Fix ES3 compatibility
This commit is contained in:
@@ -922,7 +922,8 @@
|
||||
}
|
||||
bufs[curBuf] += '<li><h3>' + Tools.escapeHTML(curSection) + '</li>';
|
||||
}
|
||||
bufs[curBuf] += '<li><button name="selectFormat" value="' + i + '"' + (curFormat === i ? ' class="sel"' : '') + '>' + (curSection.startsWith('ORAS') ? '[Gen 6] ' : '') + Tools.escapeFormat(format.id).replace('[Gen 7] ', '') + '</button></li>';
|
||||
var formatName = (curSection.slice(0, 4) === 'ORAS' ? '[Gen 6] ' : '') + Tools.escapeFormat(format.id).replace('[Gen 7] ', '');
|
||||
bufs[curBuf] += '<li><button name="selectFormat" value="' + i + '"' + (curFormat === i ? ' class="sel"' : '') + '>' + formatName + '</button></li>';
|
||||
}
|
||||
|
||||
var html = '';
|
||||
|
||||
Reference in New Issue
Block a user