CyTube/player/hitbox.coffee
2016-09-19 20:45:21 -07:00

13 lines
348 B
CoffeeScript

window.HitboxPlayer = class HitboxPlayer extends EmbedPlayer
constructor: (data) ->
if not (this instanceof HitboxPlayer)
return new HitboxPlayer(data)
@load(data)
load: (data) ->
data.meta.embed =
src: "https://www.hitbox.tv/embed/#{data.id}"
tag: 'iframe'
super(data)