mirror of
https://github.com/Spengreb/sync.git
synced 2026-05-14 19:42:06 +00:00
12 lines
371 B
CoffeeScript
12 lines
371 B
CoffeeScript
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)
|