Skip to content

Commit

Permalink
chore: add missing await
Browse files Browse the repository at this point in the history
  • Loading branch information
VampireChicken12 committed Oct 19, 2024
1 parent 01ffa0e commit 83b96e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/features/scrollWheelSpeedControl/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
})();
});
Expand Down

0 comments on commit 83b96e4

Please sign in to comment.