You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Similar problems happening for undefined variables. If I pass an undefined variable, it makes it string "undefined" and all my if(variable) checks afterwards became broken.
hey,
I just encountered the problem that a boolean false got converted to the string "false" using your sanitize function:
console.log(typeof(worldhit));
> boolean
console.log(typeof(sanitizer.sanitize(worldhit)));
> string
the value of the variable is false and since !!"false" === true in javascript, it is always interpreted as true.
The text was updated successfully, but these errors were encountered: