mirror of
https://github.com/iv-org/invidious.git
synced 2024-12-23 05:53:37 +00:00
embed.js target_origin more short code
Co-authored-by: AHOHNMYC <24810600+AHOHNMYC@users.noreply.github.com>
This commit is contained in:
parent
e9faeb793b
commit
024246d1b3
@ -81,10 +81,7 @@ function return_message(message,target_window){
|
||||
additional_info['value'] = {geterrorcode:player.error().code};
|
||||
}
|
||||
message = Object.assign(additional_info,message);
|
||||
let target_origin = url_params.get('origin');
|
||||
if(target_origin===null){
|
||||
target_origin = '*';
|
||||
}
|
||||
let target_origin = url_params.get('origin') || '*';
|
||||
target_window.postMessage(message,target_origin);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user