Fixed JS error

This commit is contained in:
Bernd Bestel 2020-12-22 10:23:26 +01:00
parent 5c8ed05f68
commit f1ddd4a57e
No known key found for this signature in database
GPG Key ID: 71BD34C0D4891300

View File

@ -63,6 +63,11 @@ IsTouchInputDevice = function()
BoolVal = function(test)
{
if (!test)
{
return false;
}
var anything = test.toString().toLowerCase();
if (anything === true || anything === "true" || anything === "1" || anything === "on")
{