Remove unused geturlparameter function

tests
Lartsch 2022-12-03 01:59:32 +01:00 zatwierdzone przez GitHub
rodzic e8b8c9ea80
commit 20ac4961ce
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 14 usunięć

Wyświetl plik

@ -111,19 +111,6 @@ async function makeRequest(method, url, extraheaders) {
});
}
// extract given url parameter value
var getUrlParameter = function getUrlParameter(sParam) {
var sPageURL = window.location.search.substring(1),
sURLVariables = sPageURL.split('&'), sParameterName, i;
for (i = 0; i < sURLVariables.length; i++) {
sParameterName = sURLVariables[i].split('=');
if (sParameterName[0] === sParam) {
return sParameterName[1] === undefined ? true : decodeURIComponent(sParameterName[1]);
}
}
return false;
};
function escapeRegExp(string) {
return string.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'); // $& means the whole matched string
}
@ -969,4 +956,4 @@ async function run() {
}
}
run()
run()