blah
This commit is contained in:
@ -149,8 +149,16 @@ class v0ck {
|
||||
|
||||
player.addEventListener('click', e => {
|
||||
const path = e.path || (e.composedPath && e.composedPath());
|
||||
if(!path.filter(f => f.classList?.contains('v0ck_player_controls')).length)
|
||||
togglePlay(e);
|
||||
if(path.filter(f => f.classList?.contains('v0ck_player_controls')).length)
|
||||
return;
|
||||
|
||||
//navigator.userAgentData = { mobile: true };
|
||||
if(navigator.userAgentData?.mobile) { // mobile
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
togglePlay(e);
|
||||
});
|
||||
toggle.addEventListener('click', togglePlay);
|
||||
video.addEventListener('play', updatePlayIcon);
|
||||
|
Reference in New Issue
Block a user