x
This commit is contained in:
parent
ca020174db
commit
e160f3eba7
1 changed files with 8 additions and 3 deletions
11
index.html
11
index.html
|
|
@ -1497,9 +1497,14 @@ function copyToClipboard(text) {
|
|||
function createProposalViewModal(proposal) {
|
||||
// Update meta tags for sharing
|
||||
const ogImageUrl = getShareableImageUrl(proposal);
|
||||
document.getElementById('og-image').setAttribute('content', ogImageUrl);
|
||||
document.getElementById('twitter-image').setAttribute('content', ogImageUrl);
|
||||
|
||||
const ogImageElement = document.querySelector('meta[property="og:image"]');
|
||||
if (ogImageElement) {
|
||||
ogImageElement.setAttribute('content', ogImageUrl);
|
||||
}
|
||||
const twitterImageElement = document.querySelector('meta[name="twitter:image"]');
|
||||
if (twitterImageElement) {
|
||||
twitterImageElement.setAttribute('content', ogImageUrl);
|
||||
}
|
||||
// Create modal elements
|
||||
const modalOverlay = document.createElement('div');
|
||||
modalOverlay.className = 'modal-overlay';
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue