1 decade ago by Joncom
Not really needing help per se. But while glancing through
And I wonder if the one line shouldn't read like this:
Haven&
impact.js
, noticed this code starting at line 381:ig.ua.iPhone = /iPhone/i.test(navigator.userAgent); ig.ua.iPhone4 = (ig.ua.iPhone && ig.ua.pixelRatio == 2); ig.ua.iPad = /iPad/i.test(navigator.userAgent); ig.ua.android = /android/i.test(navigator.userAgent); ig.ua.iOS = ig.ua.iPhone || ig.ua.iPad; ig.ua.mobile = ig.ua.iOS || ig.ua.android;
And I wonder if the one line shouldn't read like this:
// Added: ig.ua.iPhone4 ig.ua.iOS = ig.ua.iPhone || ig.ua.iPhone4 || ig.ua.iPad;
Haven&
039;t tested this, because I don't have an iPhone 4, but by reading the code, it seems that iPhone 4 users would not be detected if checking with #ig.ua.mobile
.