diff options
author | Matthieu Napoli <matthieu@mnapoli.fr> | 2015-03-18 06:39:17 +0300 |
---|---|---|
committer | Matthieu Napoli <matthieu@mnapoli.fr> | 2015-03-18 06:39:17 +0300 |
commit | 107fe4d29728b28f7ca6e363ad0508270faa3bd8 (patch) | |
tree | a454f162cd4cfdf622d2017762c8a817c2bba7ce /js | |
parent | 74f0d0ff2529aed1ce07bb2409ea204c9cadd99c (diff) |
#7437 Exclude all IE versions except 11 to calculate percentages of plugins
In piwik.js we exclude IE browsers by using the `MSIE` string in the user agent. However IE11 doesn't use that user agent anymore, which means we record plugin usage for IE11, which lead to % > 100%. Now we exclude only IE6, 7, 8, 9, 10.
Diffstat (limited to 'js')
-rw-r--r-- | js/piwik.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/js/piwik.js b/js/piwik.js index cac08102f5..9305b4e548 100644 --- a/js/piwik.js +++ b/js/piwik.js @@ -3993,6 +3993,7 @@ if (typeof Piwik !== 'object') { }, devicePixelRatio = (new RegExp('Mac OS X.*Safari/')).test(navigatorAlias.userAgent) ? windowAlias.devicePixelRatio || 1 : 1; + // detect browser features except IE < 11 (IE 11 user agent is no longer MSIE) if (!((new RegExp('MSIE')).test(navigatorAlias.userAgent))) { // general plugin detection if (navigatorAlias.mimeTypes && navigatorAlias.mimeTypes.length) { |