assets/scripts.js: Fix comparing to strings in preconditions

This commit is contained in:
Vladimir Panteleev 2019-07-28 17:45:48 +00:00
parent 4260f0ccf4
commit 7ad6dec786

View file

@ -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';