lib/onebox/engine/twitch_clips_onebox.rb in onebox-2.2.12 vs lib/onebox/engine/twitch_clips_onebox.rb in onebox-2.2.13

- old
+ new

@@ -1,22 +1,20 @@ # frozen_string_literal: true require_relative '../mixins/twitch_onebox' class Onebox::Engine::TwitchClipsOnebox - def self.twitch_regexp /^https?:\/\/clips\.twitch\.tv\/([a-zA-Z0-9_]+\/?[^#\?\/]+)/ end - include Onebox::Mixins::TwitchOnebox + include Onebox::Mixins::TwitchOnebox requires_iframe_origins "https://clips.twitch.tv" def query_params "clip=#{twitch_id}" end def base_url "clips.twitch.tv/embed?" end - end