Fix Nicovideo methods

This commit is contained in:
Xaekai 2022-02-07 12:14:55 -08:00
parent 9bd8fee92f
commit 24fdc3639a

View file

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