projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add 'how to report a bug' to the FAQ
[vchess.git]
/
client
/
src
/
playCompMove.js
diff --git
a/client/src/playCompMove.js
b/client/src/playCompMove.js
index
05c2286
..
d83148f
100644
(file)
--- a/
client/src/playCompMove.js
+++ b/
client/src/playCompMove.js
@@
-2,8
+2,8
@@
onmessage = async function(e) {
switch (e.data[0]) {
case "scripts": {
onmessage = async function(e) {
switch (e.data[0]) {
case "scripts": {
- const vModule = await import("@/variants/" + e.data[1] + ".js");
-
self.V = vModule.VariantRules
;
+ await import("@/variants/" + e.data[1] + ".js")
+
.then((vModule) => { self.V = vModule[e.data[1] + "Rules"]; })
;
break;
}
case "init": {
break;
}
case "init": {