mirror of
https://github.com/shazow/ssh-chat.git
synced 2025-04-14 08:07:16 +03:00
parent
338ded7a4e
commit
5057b891c0
@ -165,6 +165,9 @@ func (theme Theme) Highlight(s string) string {
|
|||||||
|
|
||||||
// Timestamp colorizes the timestamp.
|
// Timestamp colorizes the timestamp.
|
||||||
func (theme Theme) Timestamp(s string) string {
|
func (theme Theme) Timestamp(s string) string {
|
||||||
|
if theme.sys == nil {
|
||||||
|
return s
|
||||||
|
}
|
||||||
return theme.sys.Format(s)
|
return theme.sys.Format(s)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user