mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-30 07:42:23 +02:00
Do not send or apply undefined args over WebSocket
This commit is contained in:
@@ -386,6 +386,8 @@ class ClapperPlayer extends GstClapper.Clapper
|
|||||||
case 'toggle_play':
|
case 'toggle_play':
|
||||||
case 'play':
|
case 'play':
|
||||||
case 'pause':
|
case 'pause':
|
||||||
|
this[action]();
|
||||||
|
break;
|
||||||
case 'set_playlist':
|
case 'set_playlist':
|
||||||
case 'append_playlist':
|
case 'append_playlist':
|
||||||
case 'set_subtitles':
|
case 'set_subtitles':
|
||||||
|
@@ -27,7 +27,7 @@ class ClapperWidgetRemote extends Gtk.Grid
|
|||||||
this.togglePlayButton.remove_css_class('flat');
|
this.togglePlayButton.remove_css_class('flat');
|
||||||
this.togglePlayButton.child.add_css_class('playbackicon');
|
this.togglePlayButton.child.add_css_class('playbackicon');
|
||||||
this.togglePlayButton.connect(
|
this.togglePlayButton.connect(
|
||||||
'clicked', this.sendWs.bind(this, 'toggle_play')
|
'clicked', () => this.sendWs('toggle_play')
|
||||||
);
|
);
|
||||||
|
|
||||||
this.attach(this.togglePlayButton, 0, 0, 1, 1);
|
this.attach(this.togglePlayButton, 0, 0, 1, 1);
|
||||||
|
Reference in New Issue
Block a user