Hacker News new | past | comments | ask | show | jobs | submit login

I think it's just a static redirect, it sent me to the Apple Watch page in Firefox on Linux. But I also wondered if it would shuffle between a few different brands or something (I guess not).





Looks it tries to identify Apple devices and goes to Pixel for everything else.

            const platform = navigator.platform || '';
            const userAgent = navigator.userAgent || '';
            const isAppleDevice = /iPhone|iPad|MacIntel/.test(platform) || 
                                /iPhone|iPad|Mac OS/.test(userAgent);
            
            // Set redirect URL and message based on device
            const redirectUrl = isAppleDevice 
                ? 'https://www.apple.com/watch'
                : 'https://store.google.com/product/pixel_watch_3?hl=en-US';
Edit: per erohead, that change was made after your comment.

It looks like:

- Chromium browsers (tested in Edge, Chrome, Brave) go to Pixel Watch,

- Android devices go to Pixel Watch,

- Apple devices go to Apple Watch,

- Firefox brings you to Apple Watch.

It might also be randomized, but that's what my tests got me, and only the Firefox one doesn't make humorous sense.


I got pixel with Firefox for Android

>- Android devices go to Pixel Watch,

>- Firefox brings you to Apple Watch.

I had read your post correctly. I just provided more information for a cases that matched two of your conditions


I got redirected to pixel



Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: