mirror of
https://github.com/Team254/cheesy-arena-lite.git
synced 2026-03-09 21:56:50 -04:00
Improved announcer display formatting.
This commit is contained in:
@@ -51,7 +51,9 @@ var postMatchResult = function(data) {
|
||||
|
||||
// Replaces newlines in team fields with HTML line breaks.
|
||||
var formatTeam = function(team) {
|
||||
team.Accomplishments = team.Accomplishments.replace(/[\r\n]+/g, "<br />");
|
||||
if (team) {
|
||||
team.Accomplishments = team.Accomplishments.replace(/[\r\n]+/g, "<br />");
|
||||
}
|
||||
return team;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user