added parsed check to scoreboard, added team color vars + team-colors in damage-chart

This commit is contained in:
cnachtigall1991
2021-10-12 07:04:22 +02:00
parent 5227f05414
commit 33fd9f6b5c
6 changed files with 63 additions and 25 deletions

View File

@@ -198,7 +198,7 @@ import {
FormatDuration,
FormatFullDate,
FormatFullDuration,
GetHLTV_1,
GetHLTV_1, GoToLink,
GoToMatch,
LoadImage,
SaveLastVisitedToLocalStorage
@@ -262,7 +262,7 @@ export default {
LoadImage(data.matches[0].map ? data.matches[0].map : 'random')
console.log(response.data)
// console.log(response.data)
let player = {
'steamid64': response.data.steamid64,
@@ -274,7 +274,10 @@ export default {
document.title = `${response.data.name} | csgoWTF`
})
.catch((e) => {
console.log(e);
if (e.response.status === 404) {
GoToLink('/')
}
// console.log(e.response.status, e.response.statusText);
});
}