Fix Nicovideo methods

This commit is contained in:
Xaekai 2022-02-07 12:14:55 -08:00 committed by Calvin Montgomery
parent f6ba5b71e8
commit 9d00d9666d
1 changed files with 2 additions and 2 deletions

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 } });
}
}