forked from mirror/pixelfed
Update app.js, add title attribute to iframe embeds to comply with accessibility requirements
This commit is contained in:
parent
7bf4f8d6ac
commit
4d72b9e3ae
1 changed files with 2 additions and 2 deletions
4
resources/assets/js/app.js
vendored
4
resources/assets/js/app.js
vendored
|
@ -243,11 +243,11 @@ window.App.util = {
|
|||
u += caption ? 'caption=true&' : 'caption=false&';
|
||||
u += likes ? 'likes=true&' : 'likes=false&';
|
||||
u += layout == 'compact' ? 'layout=compact' : 'layout=full';
|
||||
return '<iframe src="'+u+'" class="pixelfed__embed" style="max-width: 100%; border: 0" width="400" allowfullscreen="allowfullscreen"></iframe><script async defer src="'+window.location.origin +'/embed.js"><\/script>';
|
||||
return '<iframe title="Pixelfed Post Embed" src="'+u+'" class="pixelfed__embed" style="max-width: 100%; border: 0" width="400" allowfullscreen="allowfullscreen"></iframe><script async defer src="'+window.location.origin +'/embed.js"><\/script>';
|
||||
}),
|
||||
profile: (function(url) {
|
||||
let u = url + '/embed';
|
||||
return '<iframe src="'+u+'" class="pixelfed__embed" style="max-width: 100%; border: 0" width="400" allowfullscreen="allowfullscreen"></iframe><script async defer src="'+window.location.origin +'/embed.js"><\/script>';
|
||||
return '<iframe title="Pixelfed Profile Embed" src="'+u+'" class="pixelfed__embed" style="max-width: 100%; border: 0" width="400" allowfullscreen="allowfullscreen"></iframe><script async defer src="'+window.location.origin +'/embed.js"><\/script>';
|
||||
})
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue