Add missed file

This commit is contained in:
Calvin Montgomery 2020-01-26 20:20:37 -08:00
parent 58e4e09840
commit 46311bd661
1 changed files with 12 additions and 0 deletions

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)