web: Await the player loading in jsApiBefore

This commit is contained in:
Nathan Adams 2023-11-13 17:36:42 +01:00
parent 7c5c4576cc
commit 88d5177653
1 changed files with 2 additions and 2 deletions

View File

@ -121,8 +121,8 @@ function jsApiBefore(swf) {
if (swf) {
await browser.execute(
(player, swf) => {
player.load(swf);
async (player, swf) => {
await player.load(swf);
},
player,
swf,