1 window.TwitchClipPlayer = class TwitchClipPlayer extends EmbedPlayer
3 if not (this instanceof TwitchClipPlayer)
4 return new TwitchClipPlayer(data)
9 if location.hostname != location.host or location.protocol != 'https:'
11 'Twitch API Parameters',
12 window.TWITCH_PARAMS_ERROR,
14 ).removeClass('col-md-12')
20 src: "https://clips.twitch.tv/embed?clip=#{data.id}&parent=#{location.host}"