mirror of
https://github.com/utopia-os/utopia-ui.git
synced 2025-12-13 07:46:10 +00:00
fix og-meta-tags
This commit is contained in:
parent
676f1662ad
commit
f959dd2713
@ -73,6 +73,7 @@ export const Layer = (props: LayerProps) => {
|
||||
const item = leafletRefs[id]?.item;
|
||||
document.title = document.title.split("-")[0] + " - " + item.name;
|
||||
document.querySelector('meta[property="og:title"]')?.setAttribute("content", item.name);
|
||||
document.querySelector('meta[property="og:site_name"]')?.setAttribute("content", item.name);
|
||||
document.querySelector('meta[property="og:description"]')?.setAttribute("content", item.text);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user