From 03c1ab0e98996689e1bd6a267240b772dbd983df Mon Sep 17 00:00:00 2001 From: JellyBrick Date: Sun, 3 Sep 2023 17:29:47 +0900 Subject: [PATCH] feat(exponential-volume): fix type of function Co-authored-by: Su-Yong --- plugins/exponential-volume/front.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/exponential-volume/front.ts b/plugins/exponential-volume/front.ts index 931acb09..3f2c5d0c 100644 --- a/plugins/exponential-volume/front.ts +++ b/plugins/exponential-volume/front.ts @@ -30,7 +30,7 @@ const exponentialVolume = () => { ? storedOriginalVolume : calculatedOriginalVolume; }, - set(originalVolume: number) { + set(this: HTMLMediaElement, originalVolume: number) { const lowVolume = originalVolume ** EXPONENT; storedOriginalVolumes.set(this, originalVolume); propertyDescriptor?.set?.call(this, lowVolume);