Skip to content
Snippets Groups Projects
Commit 406924fd authored by Arnaud Levy's avatar Arnaud Levy
Browse files

Fix

parent 418ad1d7
No related branches found
No related tags found
No related merge requests found
......@@ -5,7 +5,12 @@ class Communication::Block::Template::Video < Communication::Block::Template::Ba
has_component :transcription, :text
def video_iframe
video_provider.iframe_tag(title: video_title)
video_provider.iframe_tag(title: video_iframe_title)
end
def video_iframe_title
video_title.blank? ? 'Video'
: video_title
end
def video_platform
......
......@@ -51,7 +51,7 @@ class Video::Provider::Default
def default_iframe_options
{
class: (platform == :default ? nil : platform),
class: platform,
loading: 'lazy',
src: iframe_url
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment