Spacing tweaks to try to resolve odd conflict

This commit is contained in:
MatthewHana
2024-03-18 06:33:57 +11:00
parent e66055de08
commit d05d726dc2

View File

@@ -1352,9 +1352,9 @@ function bytesToHumanReadable(bytes, dp=1) {
return (bytes / Math.pow(1024, i)).toFixed(dp) * 1 + ' ' + ['b', 'kb', 'mb', 'gb', 'tb'][i];
}
function cleanHREFinput(a){
function cleanHREFinput(a) {
let href_form = a;
if(a.target){
if (a.target) {
href_form = a.target;
}
let currentTxtVal = href_form.value.trim().toLowerCase();
@@ -1363,11 +1363,11 @@ function cleanHREFinput(a){
href_form.value = currentTxtVal;
}
function isValidHREF(href){
if(href.length < 1){
function isValidHREF(href) {
if (href.length < 1) {
return false;
}
if(href.indexOf("/") != -1){
if (href.indexOf("/") != -1) {
return false;
}