mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-14 20:03:09 +02:00
9 lines
219 B
TypeScript
9 lines
219 B
TypeScript
|
export function getInstanceName() {
|
||
|
const siteName = document.querySelector('meta[property="og:site_name"]') as HTMLMetaElement;
|
||
|
if (siteName && siteName.content) {
|
||
|
return siteName.content;
|
||
|
}
|
||
|
|
||
|
return 'Misskey';
|
||
|
}
|