lightbox: Pass HTMLElement consistently to parse_media_data.

This commit is contained in:
afeefuddin 2024-03-24 16:02:41 +05:30 committed by Tim Abbott
parent 97d372c837
commit 59c761fe32
1 changed files with 1 additions and 1 deletions

View File

@ -359,7 +359,7 @@ export function build_open_media_function(on_close) {
payload = asset_map.get($preview_src); payload = asset_map.get($preview_src);
} }
if (payload === undefined) { if (payload === undefined) {
payload = parse_media_data($media); payload = parse_media_data($media[0]);
} }
} }