From 1005cc5c736cb4f99dec5677fac060f6196bc9aa Mon Sep 17 00:00:00 2001 From: Dario Gualtieri <47446295+atlassers@users.noreply.github.com> Date: Tue, 15 Mar 2022 17:38:57 +0100 Subject: [PATCH] Add let for modern js compliance Without the let on the row 37, angular 8 crashes when use the addDivs method. --- loaders.css.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/loaders.css.js b/loaders.css.js index c0c043b..4c6f01d 100644 --- a/loaders.css.js +++ b/loaders.css.js @@ -34,7 +34,7 @@ var addDivs = function(n) { var arr = []; - for (i = 1; i <= n; i++) { + for (let i = 1; i <= n; i++) { arr.push('
'); } return arr;