Open raspberrytipsnl opened 5 years ago
if (cpu == 'S4') { if (s == '320x568') { return 'Apple watch series 4' } }
Ha, nice find, thanks.
I wonder if we could differentiate 40 and 44mm (and 38/42 for Series 3) for sites that handle the Watch’s size with <meta name="disabled-adaptations" content="watch">
. Probably.
Could you (or anyone else with a Series 3 and/or 4) screenshot everything that’s returned by this page?
From an S4 44mm:
There is no difference in viewport between the 40 and 44mm version. Series 3 and lower do not have access to webkit.
The Apple Watch series 4 has also WebKit capabilities:
CPU: S4 / width: 320 / height: 568 / dpi @2
So you can add it to the script 😄
--Richard