lib/onebox/engine/slides_onebox.rb in onebox-2.0.2 vs lib/onebox/engine/slides_onebox.rb in onebox-2.1.0
- old
+ new
@@ -5,13 +5,14 @@
class SlidesOnebox
include Engine
include StandardEmbed
matches_regexp(/^https?:\/\/slides\.com\/[\p{Alnum}_\-]+\/[\p{Alnum}_\-]+$/)
+ requires_iframe_origins "https://slides.com"
def to_html
<<-HTML
- <iframe src="//slides.com#{uri.path}/embed?style=light"
+ <iframe src="https://slides.com#{uri.path}/embed?style=light"
width="576"
height="420"
scrolling="no"
frameborder="0"
webkitallowfullscreen