adds html rich preview
All checks were successful
CI / deploy (push) Successful in 5m15s
CI / deploy (pull_request) Successful in 10m10s

This commit is contained in:
2025-02-16 12:56:33 +01:00
parent fbfd23d335
commit 09473f627b
3 changed files with 26 additions and 0 deletions

View File

@@ -165,6 +165,13 @@ function hideSnackbar() {
}
document.addEventListener("DOMContentLoaded", async () => {
document.querySelector('meta[property="og:url"]').setAttribute("content", url());
document.querySelector('meta[property="twitter:url"]').setAttribute("content", url());
document.querySelector('meta[property="og:image"]').setAttribute("content", url() + '/rich.png');
document.querySelector('meta[name="twitter:image"]').setAttribute("content", url() + '/rich.png');
document.querySelector('meta[property="twitter:domain"]').setAttribute("content", window.location.hostname);
if (localStorage.getItem('last-name') && localStorage.getItem('last-room')) {
document.getElementById('name').value = localStorage.getItem('last-name');
document.getElementById('room').value = localStorage.getItem('last-room');

Binary file not shown.

After

Width:  |  Height:  |  Size: 206 KiB