IP address not updated when <> used #626

This commit is contained in:
jokob-sk
2024-04-13 12:02:10 +10:00
parent ae0ba6ed8f
commit e7ce7513ae
3 changed files with 35 additions and 31 deletions

View File

@@ -785,6 +785,15 @@ function checkMacOrInternet(inputStr) {
}
}
// -----------------------------------------------------------------------------
// Gte MAC from query string
function getMac(){
params = new Proxy(new URLSearchParams(window.location.search), {
get: (searchParams, prop) => searchParams.get(prop),
});
return params.mac
}
// -----------------------------------------------------------------------------
// A function used to make the IP address orderable