mirror of
https://github.com/immich-app/immich
synced 2026-08-15 13:03:57 +00:00
fix(web): resolve 'any' warning
This commit is contained in:
parent
3b9c25c626
commit
0c67c297aa
1 changed files with 3 additions and 2 deletions
|
|
@ -242,8 +242,9 @@
|
|||
$effect(() => {
|
||||
// reactive on `assetFileUrl` changes
|
||||
if (videoPlayer && assetFileUrl) {
|
||||
if (!(videoPlayer as any)._logVolumeApplied) {
|
||||
(videoPlayer as any)._logVolumeApplied = true;
|
||||
const player = videoPlayer as HTMLVideoElement & { _logVolumeApplied?: boolean };
|
||||
if (!player._logVolumeApplied) {
|
||||
player._logVolumeApplied = true;
|
||||
const originalDesc = Object.getOwnPropertyDescriptor(HTMLMediaElement.prototype, 'volume')!;
|
||||
let currentUiVolume = videoPlayer.volume;
|
||||
Object.defineProperty(videoPlayer, 'volume', {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue