projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixes
[vchess.git]
/
client
/
src
/
components
/
Settings.vue
diff --git
a/client/src/components/Settings.vue
b/client/src/components/Settings.vue
index
b7dd9b8
..
4838297
100644
(file)
--- a/
client/src/components/Settings.vue
+++ b/
client/src/components/Settings.vue
@@
-34,7
+34,7
@@
div
option(value="2") {{ st.tr["All"] }}
fieldset
.slidecontainer
option(value="2") {{ st.tr["All"] }}
fieldset
.slidecontainer
- input#myRange.slider(type="range" min="
10" max="100" value="55
"
+ input#myRange.slider(type="range" min="
20" max="100" value="60
"
@input="adjustBoard")
</template>
@input="adjustBoard")
</template>
@@
-46,6
+46,11
@@
export default {
return {
st: store.state,
};
return {
st: store.state,
};
+ },
+ mounted: function() {
+ const boardSize = localStorage.getItem("boardSize");
+ if (!!boardSize)
+ document.getElementById("myRange").value = Math.floor(boardSize / 10);
},
methods: {
updateSettings: function(event) {
},
methods: {
updateSettings: function(event) {