Improved announcer display formatting.

This commit is contained in:
Patrick Fairbank
2014-08-27 16:30:40 -07:00
parent 977244f8ba
commit 7f67d8677f
2 changed files with 27 additions and 32 deletions

View File

@@ -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;
};