mirror of
https://github.com/grocy/grocy.git
synced 2025-08-15 18:26:00 +00:00
Fixed JS error
This commit is contained in:
@@ -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")
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user