embed resource on Open Graph page for debugging

pull/18/head
tycrek 4 years ago
parent 9fc4668354
commit 3ca38e60ac
No known key found for this signature in database
GPG Key ID: 25D74F3943625263

@ -49,6 +49,8 @@ class OpenGraph {
resourceId: this.resourceId, resourceId: this.resourceId,
resourceUrl, resourceUrl,
media: this.type.includes('video') ? `<video src="${resourceUrl}" style="height: 50vh;">` : `<img src="${resourceUrl}" style="height: 50vh;">`,
ogtype: this.type.includes('video') ? 'video.other' : 'image', ogtype: this.type.includes('video') ? 'video.other' : 'image',
type: this.type.includes('video') ? 'video' : 'image', type: this.type.includes('video') ? 'video' : 'image',
title: (this.title.length != 0) ? `<meta property="og:title" content="${this.title}">` : '', title: (this.title.length != 0) ? `<meta property="og:title" content="${this.title}">` : '',
@ -84,6 +86,8 @@ const html = `
</head> </head>
<body> <body>
Open Graph response for <a href="{{{homepage}}}" target="_blank">ass</a> {{{version}}} Open Graph response for <a href="{{{homepage}}}" target="_blank">ass</a> {{{version}}}
<br>
{{{media}}}
</body> </body>
</html> </html>
`; `;

Loading…
Cancel
Save