X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=client%2Fsrc%2Fcomponents%2FMoveList.vue;h=6385ea0d8160f2a989e93e9e6297677d0f33ecb7;hp=96d67049b64034178643e035ae0319d552a23158;hb=77a37196e0b8e21aa9260f8d5c3b73bfb9bea68c;hpb=57078452549f252460d45e91b84c7eea40dd3e9c diff --git a/client/src/components/MoveList.vue b/client/src/components/MoveList.vue index 96d67049..6385ea0d 100644 --- a/client/src/components/MoveList.vue +++ b/client/src/components/MoveList.vue @@ -125,7 +125,10 @@ export default { }, btnRulesClass: function() { // "rr" for "rules read" - return { highlightRules: !localStorage.getItem("rr_" + this.vname) }; + return { + highlightRules: + !!this.vname && !localStorage.getItem("rr_" + this.vname) + }; } }, methods: {