Add missed file
This commit is contained in:
parent
58e4e09840
commit
46311bd661
12
player/twitchclip.coffee
Normal file
12
player/twitchclip.coffee
Normal file
|
@ -0,0 +1,12 @@
|
|||
window.TwitchClipPlayer = class TwitchClipPlayer extends EmbedPlayer
|
||||
constructor: (data) ->
|
||||
if not (this instanceof TwitchClipPlayer)
|
||||
return new TwitchClipPlayer(data)
|
||||
|
||||
@load(data)
|
||||
|
||||
load: (data) ->
|
||||
data.meta.embed =
|
||||
tag: 'iframe'
|
||||
src: "https://clips.twitch.tv/embed?clip=#{data.id}"
|
||||
super(data)
|
Loading…
Reference in a new issue