Fix for eslint
This commit is contained in:
parent
7905df052f
commit
1062c5b4db
3 changed files with 142 additions and 120 deletions
|
@ -23,7 +23,7 @@ const isMissingHttp = (keywords: string): boolean => {
|
|||
|
||||
try {
|
||||
let u = new URL('http://' + keywords);
|
||||
return isLocalhost(u.host)
|
||||
return isLocalhost(u.host);
|
||||
} catch (e) {
|
||||
// fallthrough
|
||||
}
|
||||
|
|
Reference in a new issue