Skip to content

Commit

Permalink
Fix MessageRate exception when null in javascript
Browse files Browse the repository at this point in the history
  • Loading branch information
Thom-x committed Nov 26, 2016
1 parent b957166 commit e3334ed
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions public_html/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -630,8 +630,10 @@ function refreshPageTitle() {
}

if (MessageRateInTitle) {
if(MessageRate != null) {
if (subtitle) subtitle += ' | ';
subtitle += MessageRate.toFixed(1) + '/s';
}
}

document.title = PageName + ' - ' + subtitle;
Expand Down

0 comments on commit e3334ed

Please sign in to comment.