aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorGravatar Jon Barlow <orviwan@users.noreply.github.com> 2017-10-16 18:04:15 +0100
committerGravatar GitHub <noreply@github.com> 2017-10-16 18:04:15 +0100
commit6d721d94b0c1e75f80e1d54dcfa976239188b31a (patch)
treed14e97f1f2b66e1ec9506b747e33282402bd1797 /app
parenta386b459010f74f50a454ebcad30aaac1f65ac3b (diff)
parenta0234de7fe58084497b0d9d94510f7e715840cce (diff)
Merge pull request #1 from Fitbit/jonb/fix-prefix
Fix missing prefix
Diffstat (limited to 'app')
-rw-r--r--app/index.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/index.js b/app/index.js
index f042714..d262ae8 100644
--- a/app/index.js
+++ b/app/index.js
@@ -73,8 +73,8 @@ function setDay(val) {
}
function drawDigits(prefix, val, place1, place2) {
- place1.href = Math.floor(val / 10) + ".png";
- place2.href = Math.floor(val % 10) + ".png";
+ place1.href = prefix + Math.floor(val / 10) + ".png";
+ place2.href = prefix + Math.floor(val % 10) + ".png";
}
function getDayImg(index) {