devshort

Unnamed repository; edit this file 'description' to name the repository.
git clone git://code.clttr.info/devshort.git
Log | Files | Refs | README | LICENSE

commit 2e4504a1a314e7a4a22ed51015c1470dad3323d2
parent b7f5dca7bc9d1224b616f8dee559e667ed3ab2c2
Author: Florian Kaldowski <flokX@users.noreply.github.com>
Date:   Sat, 27 Apr 2019 11:17:36 +0200

Use const
Diffstat:
Madmin/main.js | 10+++++-----
1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/admin/main.js b/admin/main.js @@ -1,8 +1,8 @@ -var currentDate = new Date(); -var startDate = new Date(new Date().setFullYear(currentDate.getFullYear() - 1)); -var spinner = document.getElementById('spinner'); -var chartsDiv = document.getElementById('charts'); -var statusDiv = document.getElementById('status'); +const currentDate = new Date(); +const startDate = new Date(new Date().setFullYear(currentDate.getFullYear() - 1)); +const spinner = document.getElementById('spinner'); +const chartsDiv = document.getElementById('charts'); +const statusDiv = document.getElementById('status'); function post(url, data) { 'use strict';