mirror of
https://github.com/iv-org/invidious.git
synced 2025-06-07 14:22:56 -04:00
formatting
This commit is contained in:
parent
bc3b3f6d69
commit
e67a30b124
1 changed files with 6 additions and 6 deletions
|
@ -539,9 +539,9 @@ const toggle_captions = (function () {
|
||||||
bindChange('off');
|
bindChange('off');
|
||||||
track.mode = mode;
|
track.mode = mode;
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
bindChange('on');
|
bindChange('on');
|
||||||
}, 0);
|
}, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
bindChange('on');
|
bindChange('on');
|
||||||
return function () {
|
return function () {
|
||||||
|
@ -584,9 +584,9 @@ const toggle_captions = (function () {
|
||||||
|
|
||||||
// For real-time updates to captions (if currently showing)
|
// For real-time updates to captions (if currently showing)
|
||||||
function update_captions() {
|
function update_captions() {
|
||||||
if (document.body.querySelector('.vjs-text-track-cue')) {
|
if (document.body.querySelector('.vjs-text-track-cue')) {
|
||||||
toggle_captions(); toggle_captions();
|
toggle_captions(); toggle_captions();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function toggle_fullscreen() {
|
function toggle_fullscreen() {
|
||||||
|
@ -620,7 +620,7 @@ function toggle_caption_window() {
|
||||||
update_captions();
|
update_captions();
|
||||||
}
|
}
|
||||||
|
|
||||||
function toggle_caption_opacity() {
|
function toggle_caption_opacity() {
|
||||||
const numOptions = options.textOpacity.length;
|
const numOptions = options.textOpacity.length;
|
||||||
const textOpacity = player.textTrackSettings.getValues().textOpacity || '1';
|
const textOpacity = player.textTrackSettings.getValues().textOpacity || '1';
|
||||||
const curIndex = options.textOpacity.indexOf(textOpacity);
|
const curIndex = options.textOpacity.indexOf(textOpacity);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue