mirror of https://github.com/vector-im/riot-web
delint prefer let/const over var
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>pull/21833/head
parent
4ed27a4ba6
commit
8ea13d9b57
|
@ -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]);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue