Fixed JS error

This commit is contained in:
Bernd Bestel
2020-12-22 10:23:26 +01:00
parent 5c8ed05f68
commit f1ddd4a57e

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")
{