delint prefer let/const over var
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
4ed27a4ba6
commit
8ea13d9b57
1 changed files with 4 additions and 4 deletions
|
@ -1,7 +1,7 @@
|
||||||
var params = window.location.search.substring(1).split('&');
|
const params = window.location.search.substring(1).split('&');
|
||||||
var lockOrigin;
|
let lockOrigin;
|
||||||
for (var i = 0; i < params.length; ++i) {
|
for (let i = 0; i < params.length; ++i) {
|
||||||
var parts = params[i].split('=');
|
const parts = params[i].split('=');
|
||||||
if (parts[0] === 'origin') lockOrigin = decodeURIComponent(parts[1]);
|
if (parts[0] === 'origin') lockOrigin = decodeURIComponent(parts[1]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue