1
0
Fork 0

Fix iframe allow-popups for oembed

This commit is contained in:
Chocobozzz 2021-12-07 11:06:35 +01:00
parent ae9809a7d0
commit 6e14e40053
No known key found for this signature in database
GPG key ID: 583A612D890159BE

View file

@ -98,7 +98,7 @@ function buildOEmbed (options: {
thumbnailUrl = undefined
}
const html = `<iframe width="${embedWidth}" height="${embedHeight}" sandbox="allow-same-origin allow-scripts" ` +
const html = `<iframe width="${embedWidth}" height="${embedHeight}" sandbox="allow-same-origin allow-scripts allow-popups" ` +
`title="${embedTitle}" src="${embedUrl}" frameborder="0" allowfullscreen></iframe>`
const json: any = {