web: Await the player loading in jsApiBefore
This commit is contained in:
parent
7c5c4576cc
commit
88d5177653
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue