@(c: lila.challenge.Challenge, json: play.api.libs.json.JsObject, owner: Boolean)(implicit ctx: Context) @embedJs { lichess_challenge = { socketUrl: '@routes.Challenge.websocket(c.id, apiVersion.value)', xhrUrl: '@routes.Challenge.show(c.id)', owner: @owner, data: @toJson(json) }; } @jsTag("challenge.js", async = false)