From aa387f52de3b22319849a4aa500ec22da423de31 Mon Sep 17 00:00:00 2001 From: Philippe Fanaro Date: Sat, 3 Oct 2020 16:37:49 -0300 Subject: [PATCH] pip should only work in a video page... --- lib/src/kbd.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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');