projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix parseInt() usage, rename Doubleorda --> Ordamirror, implement Clorange variant
[vchess.git]
/
client
/
src
/
components
/
MoveList.vue
diff --git
a/client/src/components/MoveList.vue
b/client/src/components/MoveList.vue
index
96d6704
..
2e011b4
100644
(file)
--- a/
client/src/components/MoveList.vue
+++ b/
client/src/components/MoveList.vue
@@
-81,7
+81,7
@@
export default {
document.getElementById("adjuster")
.addEventListener("click", processModalClick);
// Take full width on small screens:
document.getElementById("adjuster")
.addEventListener("click", processModalClick);
// Take full width on small screens:
- let boardSize = parseInt(localStorage.getItem("boardSize"));
+ let boardSize = parseInt(localStorage.getItem("boardSize")
, 10
);
if (!boardSize) {
boardSize =
window.innerWidth >= 768
if (!boardSize) {
boardSize =
window.innerWidth >= 768
@@
-125,7
+125,10
@@
export default {
},
btnRulesClass: function() {
// "rr" for "rules read"
},
btnRulesClass: function() {
// "rr" for "rules read"
- return { highlightRules: !localStorage.getItem("rr_" + this.vname) };
+ return {
+ highlightRules:
+ !!this.vname && !localStorage.getItem("rr_" + this.vname)
+ };
}
},
methods: {
}
},
methods: {