use setViewOptions over viewAs

This commit is contained in:
mig 2017-04-28 16:53:08 +02:00
parent edc2937d1a
commit a1c4976e83

View file

@ -225,7 +225,9 @@ $(document).ready(function () {
else if(playerMode=="player-b")
player = Jocly.PLAYER_B;
if(player)
match.viewAs(player)
match.setViewOptions({
viewAs: player
})
.then( () => {
RunMatch(match,progressBar);
});