Sharkey/src/client/scripts/get-instance-name.ts

9 lines
219 B
TypeScript
Raw Normal View History

export function getInstanceName() {
const siteName = document.querySelector('meta[property="og:site_name"]') as HTMLMetaElement;
if (siteName && siteName.content) {
return siteName.content;
}
return 'Misskey';
}