From f626fbd274d172fb7532bc52721d6be6123e7009 Mon Sep 17 00:00:00 2001
From: Karl <kc0bfv@gmail.com>
Date: Fri, 11 Nov 2022 22:18:05 +0000
Subject: [PATCH] Set vars to const

---
 layouts/partials/head.html |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index a018bc7..ab4b3e5 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -55,9 +55,9 @@
 
 <script>
     function randomImg(dest_elem, images) {
-        let img_ind = Math.ceil(Math.random() * images.length) - 1;
-        let sel_url = images[img_ind]
-        let img = new Image();
+        const img_ind = Math.ceil(Math.random() * images.length) - 1;
+        const sel_url = images[img_ind]
+        const img = new Image();
         img.onload = function() {
             function set_img() {
                 const element = document.getElementById(dest_elem);

--
Gitblit v1.10.0