diff options
author | Thomas Steur <tsteur@users.noreply.github.com> | 2016-07-14 01:40:08 +0300 |
---|---|---|
committer | Matthieu Aubry <mattab@users.noreply.github.com> | 2016-07-14 01:40:08 +0300 |
commit | fdaee2aea742119a021ebbc31239e8ba0a8b346b (patch) | |
tree | 3975fa98ccc95b0991f0643f0f7659320b48402b /js | |
parent | f6c3da4b50fe161cde8c30f436acf8c72cf45545 (diff) |
record actual screen resolution when using JS tracker (#10296)
Diffstat (limited to 'js')
-rw-r--r-- | js/piwik.js | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/js/piwik.js b/js/piwik.js index df079ddb18..af5dd325c3 100644 --- a/js/piwik.js +++ b/js/piwik.js @@ -972,7 +972,7 @@ if (typeof JSON2 !== 'object' && typeof window.JSON === 'object' && window.JSON. onload, src, min, round, random, exec, - res, width, height, devicePixelRatio, + res, width, height, pdf, qt, realp, wma, dir, fla, java, gears, ag, hook, getHook, getVisitorId, getVisitorInfo, setUserId, getUserId, setSiteId, getSiteId, setTrackerUrl, getTrackerUrl, appendToTrackingUrl, getRequest, addPlugin, getAttributionInfo, getAttributionCampaignName, getAttributionCampaignKeyword, @@ -5014,8 +5014,7 @@ if (typeof window.Piwik !== 'object') { java: 'application/x-java-vm', gears: 'application/x-googlegears', ag: 'application/x-silverlight' - }, - devicePixelRatio = windowAlias.devicePixelRatio || 1; + }; // detect browser features except IE < 11 (IE 11 user agent is no longer MSIE) if (!((new RegExp('MSIE')).test(navigatorAlias.userAgent))) { @@ -5046,8 +5045,8 @@ if (typeof window.Piwik !== 'object') { browserFeatures.cookie = hasCookies(); } - var width = parseInt(screenAlias.width, 10) * devicePixelRatio; - var height = parseInt(screenAlias.height, 10) * devicePixelRatio; + var width = parseInt(screenAlias.width, 10); + var height = parseInt(screenAlias.height, 10); browserFeatures.res = parseInt(width, 10) + 'x' + parseInt(height, 10); } |