fix typo
This commit is contained in:
parent
b3da31d3d1
commit
c5274604b2
1 changed files with 2 additions and 2 deletions
|
|
@ -180,7 +180,7 @@ window.VideoPlayer = function(options) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
async function toggleFullscreen(event) {
|
async function toggleFullscreen(event) {
|
||||||
if (typeof window.TelegramWebview !== 'undefined') { {
|
if (typeof window.TelegramWebview !== 'undefined') {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if (isIOS) {
|
if (isIOS) {
|
||||||
|
|
@ -282,7 +282,7 @@ window.VideoPlayer = function(options) {
|
||||||
self.controls.querySelector('.toggle').addEventListener("click", toggleVideo)
|
self.controls.querySelector('.toggle').addEventListener("click", toggleVideo)
|
||||||
self.controls.querySelector('.volume').addEventListener("click", toggleSound)
|
self.controls.querySelector('.volume').addEventListener("click", toggleSound)
|
||||||
self.controls.querySelector('.fullscreen-btn').addEventListener("click", toggleFullscreen)
|
self.controls.querySelector('.fullscreen-btn').addEventListener("click", toggleFullscreen)
|
||||||
if (typeof window.TelegramWebview !== 'undefined') { {
|
if (typeof window.TelegramWebview !== 'undefined') {
|
||||||
self.controls.querySelector('.fullscreen-btn').style.display = 'none';
|
self.controls.querySelector('.fullscreen-btn').style.display = 'none';
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue