From b70194c8f249b10dab712fb9d345b6fe2792c761 Mon Sep 17 00:00:00 2001 From: Calvin Montgomery Date: Fri, 19 Jun 2020 18:31:07 -0700 Subject: [PATCH] Add destroy cb for dailymotion (#873) --- package.json | 2 +- player/dailymotion.coffee | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index b78d51c2..42ccece8 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "author": "Calvin Montgomery", "name": "CyTube", "description": "Online media synchronizer and chat", - "version": "3.70.3", + "version": "3.70.4", "repository": { "url": "http://github.com/calzoneman/sync" }, diff --git a/player/dailymotion.coffee b/player/dailymotion.coffee index 71239445..2d8e3b21 100644 --- a/player/dailymotion.coffee +++ b/player/dailymotion.coffee @@ -125,3 +125,7 @@ window.DailymotionPlayer = class DailymotionPlayer extends Player when '360' then '380' when 'best' then '1080' else 'auto' + + destroy: -> + if @dm + @dm.destroy('ytapiplayer')