From 8ea13d9b57ec3be24b45db98079fb2b49bd92a78 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Thu, 13 Feb 2020 17:05:48 +0000 Subject: [PATCH] delint prefer let/const over var Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- src/usercontent/index.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/usercontent/index.js b/src/usercontent/index.js index 8e77f6860e..0648cbb238 100644 --- a/src/usercontent/index.js +++ b/src/usercontent/index.js @@ -1,7 +1,7 @@ -var params = window.location.search.substring(1).split('&'); -var lockOrigin; -for (var i = 0; i < params.length; ++i) { - var parts = params[i].split('='); +const params = window.location.search.substring(1).split('&'); +let lockOrigin; +for (let i = 0; i < params.length; ++i) { + const parts = params[i].split('='); if (parts[0] === 'origin') lockOrigin = decodeURIComponent(parts[1]); }