Skip to content

Commit

Permalink
pip should only work in a video page...
Browse files Browse the repository at this point in the history
  • Loading branch information
psygo committed Oct 3, 2020
1 parent 1583b46 commit aa387f5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/src/kbd.dart
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,9 @@ class Kbd {
}
}

void _togglePip() => _player = _player.togglePip();
void _togglePip() {
if (_isVideo) _player = _player.togglePip();
}

bool get _isVideo => _url.contains('watch');

Expand Down

0 comments on commit aa387f5

Please sign in to comment.