mirror of
https://github.com/fankes/beszel.git
synced 2025-10-22 11:29:23 +08:00
updates
This commit is contained in:
@@ -51,3 +51,6 @@ const shortDateFormatter = new Intl.DateTimeFormat(undefined, {
|
||||
minute: 'numeric',
|
||||
})
|
||||
export const formatShortDate = (timestamp: string) => shortDateFormatter.format(new Date(timestamp))
|
||||
|
||||
export const updateFavicon = (newIconUrl: string) =>
|
||||
((document.querySelector("link[rel='icon']") as HTMLLinkElement).href = newIconUrl)
|
||||
|
Reference in New Issue
Block a user