embed.js additional_info more short

Co-authored-by: AHOHNMYC <24810600+AHOHNMYC@users.noreply.github.com>
This commit is contained in:
bonjinnorenka 2023-08-29 07:45:33 +09:00 committed by GitHub
parent 2ae3b3e2e4
commit bfba48af81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -78,8 +78,7 @@ function return_message(message,target_window){
additional_info['value'] = add_value;
}
if(message.eventname==='error'){
let add_value = {geterrorcode:player.error().code};
additional_info['value'] = add_value;
additional_info['value'] = {geterrorcode:player.error().code};
}
message = Object.assign(additional_info,message);
let target_origin = url_params.get('origin');