summaryrefslogtreecommitdiff
path: root/server/js/template.js
diff options
context:
space:
mode:
authorRafael Marçalo <raroma09@gmail.com>2022-10-23 02:31:39 +0100
committerRafael Marçalo <raroma09@gmail.com>2022-10-23 02:31:39 +0100
commit2d85011451abb47bd0debc199e0faf5e0abd58f0 (patch)
tree77946a9337ba852579e86de7cd6071004716aca5 /server/js/template.js
parent7ff1d8299574dd142ea38091e28ad5c2941b2427 (diff)
Fixing some minor details
Diffstat (limited to 'server/js/template.js')
-rw-r--r--server/js/template.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/server/js/template.js b/server/js/template.js
index a11ec66..803d0c0 100644
--- a/server/js/template.js
+++ b/server/js/template.js
@@ -45,9 +45,9 @@ function getDate(date)
let d = dateObj.getUTCDate();
let mm;
let dd;
- if (m < 10) mm = '0' + m
+ if (m < 10) mm = '0' + m;
else mm = m;
- if (d < 10) dd = '0' + d
+ if (d < 10) dd = '0' + d;
else dd = d;
return dateObj.getUTCFullYear() + '-' + mm + '-' + dd;
}
@@ -56,8 +56,7 @@ function getCategory(cat)
{
let category = "";
- if (cat > 100 && cat < 200)
- {
+ if (cat > 100 && cat < 200) {
category = "audio";
} else if (cat > 200 && cat < 300) {
category = "video";