mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-10 10:11:46 +00:00
fix(precise-volume): fix precise-volume plugin
This commit is contained in:
@ -24,7 +24,8 @@ export const moveVolumeHud = debounce((showVideo: boolean) => {
|
||||
|
||||
let options: PreciseVolumePluginConfig;
|
||||
|
||||
export const onPlayerApiReady = (playerApi: YoutubePlayer, context: RendererContext<PreciseVolumePluginConfig>) => {
|
||||
export const onPlayerApiReady = async (playerApi: YoutubePlayer, context: RendererContext<PreciseVolumePluginConfig>) => {
|
||||
options = await context.getConfig();
|
||||
api = playerApi;
|
||||
|
||||
// Without this function it would rewrite config 20 time when volume change by 20
|
||||
|
||||
Reference in New Issue
Block a user