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) { } else if (cond === true) {
return true; return true;
} else if (typeof cond === 'string') { } else if (typeof cond === 'string') {
return cond; return JSON.stringify(cond);
} else { } else {
console.log('unsupported condition!', cond); console.log('unsupported condition!', cond);
return 'true'; return 'true';