Very minor optimization on timer bar creation.

This commit is contained in:
Aktanusa committed 2014-08-24 22:18:09 -04:00
1 parent db41ada262
commit 418b1a7d2e
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -233,7 +233,7 @@ CM.Disp.CreateTimerBar = function() {
colorBar.id = bars[i].id
colorBar.style.display = 'inline-block';
colorBar.style.height = '10px';
if (bars.length == 1 || i == 1) {
if (bars.length - 1 == i) {
colorBar.style.borderTopRightRadius = '10px';
colorBar.style.borderBottomRightRadius = '10px';
}