cool
On Tue, 11 Dec 2018 at 01:18, horrido wrote:
> After much digging, I finally found the solution...
>
> From the req parameter in GET, I use:
>
> (req headers headers at: 'User-Agent') findString: 'Mobile'
>
>
>
> horrido wrote
> > Is there any way I can check the user agent string from Zinc
After much digging, I finally found the solution...
>From the req parameter in GET, I use:
(req headers headers at: 'User-Agent') findString: 'Mobile'
horrido wrote
> Is there any way I can check the user agent string from Zinc or Teapot so
> that I can determine whether the user is on a mobil
Is there any way I can check the user agent string from Zinc or Teapot so
that I can determine whether the user is on a mobile device?
I need to modify the HTML accordingly and it's really, really messy trying
to do this with JavaScript (navigator.userAgent) and conditionally inserting
innerHTML.