- // NOTE: no watcher for $route change, because if fenStart doesn't change
- // then it doesn't trigger BaseGame.re_init() and the result is weird.
- created: function() {
- this.gameRef.vname = this.$route.params["vname"];
- const routeFen = this.$route.query["fen"];
- if (!routeFen) this.alertAndQuit("Missing FEN");
- else {
- this.gameRef.fen = routeFen.replace(/_/g, " ");
- // orientation is optional: taken from FEN if missing
- const orientation = this.$route.query["side"];
- this.initialize(orientation);