|
@@ -116,6 +116,10 @@ class API {
|
116
|
116
|
return;
|
117
|
117
|
|
118
|
118
|
enabled = true;
|
|
119
|
+
|
|
120
|
+ if(!postis) {
|
|
121
|
+ this._initPostis();
|
|
122
|
+ }
|
119
|
123
|
}
|
120
|
124
|
|
121
|
125
|
/**
|
|
@@ -218,7 +222,7 @@ class API {
|
218
|
222
|
|
219
|
223
|
/**
|
220
|
224
|
* Sends remote control event.
|
221
|
|
- * @param {RemoteControlEvent} event the remote control event.
|
|
225
|
+ * @param {RemoteControlEvent} event the remote control event.
|
222
|
226
|
*/
|
223
|
227
|
sendRemoteControlEvent(event) {
|
224
|
228
|
sendMessage({method: "remote-control-event", params: event});
|