mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 04:01:58 +00:00
Better Updates Tab and updates count (#2151)
* wip * should be working now * delete unused function * delete 2 more unused functions * update fixture to include beta registry * address comments * wait for connection to get local packages
This commit is contained in:
committed by
Aiden McClelland
parent
62f78e4312
commit
4d3df867da
@@ -45,10 +45,6 @@ export function isValidHttpUrl(url: string): boolean {
|
||||
}
|
||||
}
|
||||
|
||||
export function getUrlHostname(url: string): string {
|
||||
return new URL(url).hostname
|
||||
}
|
||||
|
||||
export function toUrl(text: string | null | undefined): string {
|
||||
try {
|
||||
const url = new URL(text as string)
|
||||
|
||||
Reference in New Issue
Block a user