Add message to handlers

This commit is contained in:
Jon Staab
2024-08-27 11:54:04 -07:00
parent fcbaa67ade
commit 8a8bea71be
13 changed files with 71 additions and 61 deletions
+1 -1
View File
@@ -99,7 +99,7 @@ export const stripProtocol = (url: string) => url.replace(/.*:\/\//, "")
export const displayUrl = (url: string) => stripProtocol(url).replace(/^(www\.)?/i, "").replace(/\/$/, "")
export const displayDomain = (url: string) => first(displayUrl(url).split(/[\/\?]/))
export const displayDomain = (url: string) => displayUrl(first(url.split(/[\/\?]/)))
export const sleep = (t: number) => new Promise(resolve => setTimeout(resolve, t))