From bfba48af8166f4a901eb7e909b2ab1a15b89dead Mon Sep 17 00:00:00 2001 From: bonjinnorenka <32708102+bonjinnorenka@users.noreply.github.com> Date: Tue, 29 Aug 2023 07:45:33 +0900 Subject: [PATCH] embed.js additional_info more short Co-authored-by: AHOHNMYC <24810600+AHOHNMYC@users.noreply.github.com> --- assets/js/embed.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/assets/js/embed.js b/assets/js/embed.js index 1ab8bc5f..1b323194 100644 --- a/assets/js/embed.js +++ b/assets/js/embed.js @@ -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');