From a5368db35ab4b80e0e116375612b8c29a7d18677 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Mon, 24 Apr 2023 16:19:02 +0200 Subject: [PATCH] useless decleration of fn --- static/js/custom_img_size.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/static/js/custom_img_size.js b/static/js/custom_img_size.js index 4d04119..a480c5e 100644 --- a/static/js/custom_img_size.js +++ b/static/js/custom_img_size.js @@ -1,6 +1,4 @@ -window.addEventListener("load", () => main()); - -const main = () => { +window.addEventListener("load", () => { for (const item of document.getElementsByTagName("img")) { // Check if we may need to resize the image const possible_piece = item.alt.split(/\s?\|\s?/); @@ -36,4 +34,4 @@ const main = () => { } } } -}; +});