Prepare some more variants (unfinished)
[vchess.git] / public / javascripts / variant.js
index d617c60..819bf90 100644 (file)
@@ -7,7 +7,6 @@ new Vue({
        created: function() {
                const url = window.location.href;
                const hashPos = url.indexOf("#");
-               console.log(hashPos + " " + url);
                if (hashPos >= 0)
                        this.setDisplay(url.substr(hashPos+1));
        },
@@ -22,5 +21,8 @@ new Vue({
                        if (!!menuToggle)
                                menuToggle.checked = false;
                },
+               notDark: function() {
+                       return variant != "Dark";
+               },
        },
 });