From 46311bd6615f6293b31c7415a2504579926c80ef Mon Sep 17 00:00:00 2001 From: Calvin Montgomery Date: Sun, 26 Jan 2020 20:20:37 -0800 Subject: [PATCH] Add missed file --- player/twitchclip.coffee | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 player/twitchclip.coffee diff --git a/player/twitchclip.coffee b/player/twitchclip.coffee new file mode 100644 index 00000000..d87c2a3d --- /dev/null +++ b/player/twitchclip.coffee @@ -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)