From 83b96e4a49e4eacefa8c850f52f7ed5ebf78122d Mon Sep 17 00:00:00 2001 From: VampireChicken12 Date: Sat, 19 Oct 2024 01:14:02 -0400 Subject: [PATCH] chore: add missing await --- src/features/scrollWheelSpeedControl/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/features/scrollWheelSpeedControl/utils.ts b/src/features/scrollWheelSpeedControl/utils.ts index ba51d0cb..24a338c2 100644 --- a/src/features/scrollWheelSpeedControl/utils.ts +++ b/src/features/scrollWheelSpeedControl/utils.ts @@ -21,7 +21,7 @@ export function adjustSpeed(scrollDelta: number, speedStep: number): Promise<{ n const adjustmentAmount = speedStep * scrollDelta; if (currentPlaybackSpeed + adjustmentAmount > 16 || currentPlaybackSpeed + adjustmentAmount < youtubePlayerMinSpeed) return; const speed = round(currentPlaybackSpeed + adjustmentAmount, 2); - setPlayerSpeed(speed); + await setPlayerSpeed(speed); resolve({ newSpeed: speed, oldSpeed: currentPlaybackSpeed }); })(); });