Revert iframe title

This commit is contained in:
Marc Bellêtre 2021-04-12 17:18:41 +02:00
parent 1a6113c857
commit 797fa03357
1 changed files with 2 additions and 2 deletions

View File

@ -1832,7 +1832,7 @@ tarteaucitron.services.instagram = {
"js": function () { "js": function () {
"use strict"; "use strict";
tarteaucitron.fallback(['instagram_post'], function (x) { tarteaucitron.fallback(['instagram_post'], function (x) {
var post_id = x.getAttribute('postId'), var frame_title = tarteaucitron.fixSelfXSS(x.getAttribute("title") || 'Instagram iframe'),
post_permalink = x.getAttribute('data-instgrm-permalink'), post_permalink = x.getAttribute('data-instgrm-permalink'),
embed_width = x.getAttribute('width'), embed_width = x.getAttribute('width'),
embed_height = x.getAttribute('height'), embed_height = x.getAttribute('height'),
@ -1861,7 +1861,7 @@ tarteaucitron.services.instagram = {
frame_height = '"" '; frame_height = '"" ';
} }
post_frame = '<iframe title="Instagram iframe" src="//www.instagram.com/' + post_id + '/embed" ' + frame_width + frame_height + '></iframe>'; post_frame = '<iframe title="' + frame_title + '" src="//www.instagram.com/' + post_id + '/embed" ' + frame_width + frame_height + '></iframe>';
return post_frame; return post_frame;
}); });