Fix Nicovideo methods

This commit is contained in:
Xaekai 2022-02-07 12:14:55 -08:00
parent 9bd8fee92f
commit 24fdc3639a
1 changed files with 2 additions and 2 deletions

View File

@ -206,7 +206,7 @@ class NicovideoEmbed {
} }
mute(state){ mute(state){
this.postMessage({ eventName: 'pause', data: { mute: state } }); this.postMessage({ eventName: 'mute', data: { mute: state } });
} }
pause(){ pause(){
@ -226,7 +226,7 @@ class NicovideoEmbed {
} }
volumeChange(volume){ volumeChange(volume){
this.postMessage({ eventName: 'pause', data: { volume } }); this.postMessage({ eventName: 'volumeChange', data: { volume } });
} }
} }