mirror of
https://github.com/mehotkhan/BandersnatchInteractive.git
synced 2025-07-27 17:23:22 +00:00
assets/scripts.js: Fix comparing to strings in preconditions
This commit is contained in:
parent
4260f0ccf4
commit
7ad6dec786
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ function preconditionToJS(cond) {
|
|||
} else if (cond === true) {
|
||||
return true;
|
||||
} else if (typeof cond === 'string') {
|
||||
return cond;
|
||||
return JSON.stringify(cond);
|
||||
} else {
|
||||
console.log('unsupported condition!', cond);
|
||||
return 'true';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue