sync/player/imgur.coffee

13 lines
342 B
CoffeeScript
Raw Normal View History

2015-06-30 01:32:18 +00:00
window.ImgurPlayer = class ImgurPlayer extends EmbedPlayer
2015-06-21 14:39:16 +00:00
constructor: (data) ->
if not (this instanceof ImgurPlayer)
return new ImgurPlayer(data)
@load(data)
load: (data) ->
data.meta.embed =
tag: 'iframe'
src: "https://imgur.com/a/#{data.id}/embed"
super(data)