kopia lustrzana https://github.com/lartsch/FediAct
Remove unused geturlparameter function
rodzic
e8b8c9ea80
commit
20ac4961ce
|
@ -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()
|
||||
|
|
Ładowanie…
Reference in New Issue