mirror of
https://github.com/mastodon/mastodon.git
synced 2025-01-04 17:35:01 +01:00
Replace deprecated iFrame frameborder with border: 0
This commit is contained in:
parent
8770905186
commit
7aafb12700
@ -101,9 +101,9 @@ const EmbedModal: React.FC<{
|
||||
/>
|
||||
|
||||
<iframe
|
||||
frameBorder='0'
|
||||
ref={iframeRef}
|
||||
sandbox='allow-scripts allow-same-origin'
|
||||
style={{ border: 0 }}
|
||||
title='Preview'
|
||||
/>
|
||||
</div>
|
||||
|
@ -145,7 +145,7 @@ class LinkDetailsExtractor
|
||||
end
|
||||
|
||||
def html
|
||||
player_url.present? ? content_tag(:iframe, nil, src: player_url, width: width, height: height, allowfullscreen: 'true', allowtransparency: 'true', scrolling: 'no', frameborder: '0') : nil
|
||||
player_url.present? ? content_tag(:iframe, nil, src: player_url, width: width, height: height, allowfullscreen: 'true', allowtransparency: 'true', scrolling: 'no', style: 'border: 0') : nil
|
||||
end
|
||||
|
||||
def width
|
||||
|
@ -136,7 +136,7 @@ class Sanitize
|
||||
attributes: {
|
||||
'audio' => %w(controls),
|
||||
'embed' => %w(height src type width),
|
||||
'iframe' => %w(allowfullscreen frameborder height scrolling src width),
|
||||
'iframe' => %w(allowfullscreen frameborder height scrolling src style width),
|
||||
'source' => %w(src type),
|
||||
'video' => %w(controls height loop width),
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user