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 = () => { } } } -}; +});