projects
/
vchess.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb2d61d
)
Add temporary patch for preset challenges
author
Benjamin Auder
<benjamin.auder@somewhere>
Thu, 8 Apr 2021 19:50:50 +0000
(21:50 +0200)
committer
Benjamin Auder
<benjamin.auder@somewhere>
Thu, 8 Apr 2021 19:50:50 +0000
(21:50 +0200)
client/src/views/Hall.vue
patch
|
blob
|
blame
|
history
diff --git
a/client/src/views/Hall.vue
b/client/src/views/Hall.vue
index
6d675a1
..
1bd5987
100644
(file)
--- a/
client/src/views/Hall.vue
+++ b/
client/src/views/Hall.vue
@@
-300,6
+300,10
@@
export default {
}
},
created: function() {
+ // TODO: remove this patch soon:
+ this.presetChalls.forEach(pc => {
+ if (!pc.options) pc.options = { randomness: pc.randomness };
+ });
document.addEventListener('visibilitychange', this.visibilityChange);
window.addEventListener('focus', this.onFocus);
window.addEventListener('blur', this.onBlur);