fix(API): JS errors caused by remote control merge

This commit is contained in:
hristoterezov 2017-01-20 09:53:09 -06:00
parent b22e3ee253
commit 15090243d0
1 changed files with 5 additions and 1 deletions

View File

@ -116,6 +116,10 @@ class API {
return; return;
enabled = true; enabled = true;
if(!postis) {
this._initPostis();
}
} }
/** /**
@ -218,7 +222,7 @@ class API {
/** /**
* Sends remote control event. * Sends remote control event.
* @param {RemoteControlEvent} event the remote control event. * @param {RemoteControlEvent} event the remote control event.
*/ */
sendRemoteControlEvent(event) { sendRemoteControlEvent(event) {
sendMessage({method: "remote-control-event", params: event}); sendMessage({method: "remote-control-event", params: event});