Some fixes and enhancements as suggested on Discord
[vchess.git] / client / src / views / Game.vue
index 009dbb4..df5ef6f 100644 (file)
@@ -89,7 +89,7 @@ main
         )
           img(src="/images/icons/resign.svg")
       button.tooltip(
-        v-else-if="!!game.mycolor"
+        v-else
         @click="clickRematch()"
         :class="{['rematch-' + rematchOffer]: true}"
         :aria-label="st.tr['Rematch']"
@@ -222,7 +222,7 @@ export default {
     if ("ontouchstart" in window) {
       // Disable tooltips on smartphones:
       document.querySelectorAll("#aboveBoard .tooltip").forEach(elt => {
-        elt.classList.remove("tooltip")
+        elt.classList.remove("tooltip");
       });
     }
   },