const player = ScormBoxPlayer.initialize({ preview_token: preview.preview_token }); const launch = player.launchCourse({ el: "#training", display_mode: "iframe" }); launch.onEvent((type, result) => { // Preview events describe this temporary preview only. console.log(type, result.preview); }); await launch.ready; const current = await launch.getDetails(); await launch.close(); await launch.destroy();