mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-11 02:31:45 +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;
|
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;
|
api = playerApi;
|
||||||
|
|
||||||
// Without this function it would rewrite config 20 time when volume change by 20
|
// Without this function it would rewrite config 20 time when volume change by 20
|
||||||
|
|||||||
Reference in New Issue
Block a user