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) {
|
if (swf) {
|
||||||
await browser.execute(
|
await browser.execute(
|
||||||
(player, swf) => {
|
async (player, swf) => {
|
||||||
player.load(swf);
|
await player.load(swf);
|
||||||
},
|
},
|
||||||
player,
|
player,
|
||||||
swf,
|
swf,
|
||||||
|
|
Loading…
Reference in New Issue