Add missed file

This commit is contained in:
Calvin Montgomery 2020-01-26 20:20:37 -08:00
parent 58e4e09840
commit 46311bd661

12
player/twitchclip.coffee Normal file
View 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)