mirror of
https://github.com/grocy/grocy.git
synced 2026-04-03 19:36:16 +02:00
Fixed JS error
This commit is contained in:
parent
5c8ed05f68
commit
f1ddd4a57e
|
|
@ -63,6 +63,11 @@ IsTouchInputDevice = function()
|
||||||
|
|
||||||
BoolVal = function(test)
|
BoolVal = function(test)
|
||||||
{
|
{
|
||||||
|
if (!test)
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
var anything = test.toString().toLowerCase();
|
var anything = test.toString().toLowerCase();
|
||||||
if (anything === true || anything === "true" || anything === "1" || anything === "on")
|
if (anything === true || anything === "true" || anything === "1" || anything === "on")
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user