mirror of
https://github.com/Spengreb/sync.git
synced 2026-05-14 03:32:06 +00:00
Add missed file
This commit is contained in:
parent
58e4e09840
commit
46311bd661
1 changed files with 12 additions and 0 deletions
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…
Add table
Reference in a new issue