web: Actually respect the swf url in jsApiBefore

This commit is contained in:
Nathan Adams 2023-11-13 15:34:04 +01:00
parent f2b02acf44
commit 7c5c4576cc
1 changed files with 7 additions and 3 deletions

View File

@ -120,9 +120,13 @@ function jsApiBefore(swf) {
});
if (swf) {
await browser.execute((player) => {
player.load("/test_assets/example.swf");
}, player);
await browser.execute(
(player, swf) => {
player.load(swf);
},
player,
swf,
);
await playAndMonitor(browser, player);
}
});