Merge pull request #702 from dmitrylyzo/playback_remote

Add playback control from TV remote
This commit is contained in:
dkanada
2020-01-27 22:34:59 +09:00
committed by GitHub
4 changed files with 169 additions and 31 deletions
+1 -3
View File
@@ -22,9 +22,7 @@ define(['playbackManager', 'focusManager', 'appRouter', 'dom'], function (playba
var eventListenerCount = 0;
function on(scope, fn) {
if (eventListenerCount) {
eventListenerCount++;
}
eventListenerCount++;
dom.addEventListener(scope, 'command', fn, {});
}