diff --git a/lib/src/kbd.dart b/lib/src/kbd.dart index 57af3ea..59308f9 100644 --- a/lib/src/kbd.dart +++ b/lib/src/kbd.dart @@ -119,7 +119,9 @@ class Kbd { } } - void _togglePip() => _player = _player.togglePip(); + void _togglePip() { + if (_isVideo) _player = _player.togglePip(); + } bool get _isVideo => _url.contains('watch');