Fixed player name placeholder replacement on player.html

This commit is contained in:
Risto Lahtela 2021-02-12 13:08:48 +02:00
parent b4a17ad6c4
commit e3cdf76d50

View File

@ -716,8 +716,9 @@
Highcharts.setOptions({
lang: {noData: "No Data to Display"}, time: {timezoneOffset: ${timeZone} * 60}
});
const playerName = '${playerName}';
setLoadingText('Loading player values..');
jsonRequest(`../v1/player?player=${encodeURIComponent('${playerName}')}`, function (json, error) {
jsonRequest(`../v1/player?player=${encodeURIComponent(playerName)}`, function (json, error) {
loadPlayerOverviewValues(json, error);
loadSessionAccordion(json, error);
loadserverAccordion(json, error);