X-Git-Url: https://git.auder.net/pieces/Cwda/n_black_rook.svg?a=blobdiff_plain;f=public%2Fjavascripts%2Fcomponents%2Fgame.js;h=d76ab0117d828a3722ac2568b409f9c0c6aaf372;hb=32cfcea44bf00b0c6c4d172cca715823076ff490;hp=cb4d273d72f7a3ba086b06050e8a74679973d5a6;hpb=8b7aead3839ef4d5648aa7244412803753fee969;p=vchess.git diff --git a/public/javascripts/components/game.js b/public/javascripts/components/game.js index cb4d273d..d76ab011 100644 --- a/public/javascripts/components/game.js +++ b/public/javascripts/components/game.js @@ -25,6 +25,7 @@ Vue.component('my-game', { }, render(h) { const [sizeX,sizeY] = VariantRules.size; + console.log(sizeX + " " + sizeY); const smallScreen = (screen.width <= 420); // Precompute hints squares to facilitate rendering let hintSquares = doubleArray(sizeX, sizeY, false); @@ -660,6 +661,7 @@ Vue.component('my-game', { "value": "0", innerHTML: "None" }, + attrs: { "selected": this.sound==0 }, } ), h("option", @@ -668,6 +670,7 @@ Vue.component('my-game', { "value": "1", innerHTML: "Newgame" }, + attrs: { "selected": this.sound==1 }, } ), h("option", @@ -676,6 +679,7 @@ Vue.component('my-game', { "value": "2", innerHTML: "All" }, + attrs: { "selected": this.sound==2 }, } ), ],