1
0
mirror of https://github.com/elk-zone/elk synced 2025-01-19 22:02:50 +09:00

fix: clear emojis from head title (#111)

This commit is contained in:
Shinigami 2022-11-26 00:40:21 +01:00 committed by GitHub
parent 94cd7c72f6
commit 2cf970225f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,7 +6,7 @@ const account = await fetchAccountByName(accountName).catch(() => null)
if (account) {
useHead({
title: `${account.displayName} (@${account.acct})`,
title: () => `${account.displayName?.replace(/\:\w+\:/g, '') ?? ''} (@${account.acct})`,
})
}
</script>