Closed kaspar-allenbach closed 8 years ago
That error is unrelated to Detect; it simply means that you haven't actually set the isAndroidOS
variable you're testing.
You'll either need to do this:
{% if craft.detect.isAndroidOS %}
{# blabla #}
{% endif %}
...or this:
{% set isAndroidOS = craft.detect.isAndroidOS %}
{% if isAndroidOS %}
{# blabla #}
{% endif %}
Hi.
This works:
but this doesn't:
This returns:
Why?