Changeset 1731 in genapp


Ignore:
Timestamp:
Dec 1, 2020, 1:44:42 PM (14 months ago)
Author:
ehb
Message:

browser version update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • languages/html5/js/ga_global.js

    r1598 r1731  
    304304    ga.browser.gradient = false;
    305305    ga.browser.clrpkr   = false;
     306    ga.browser.version  = "unknown";
     307
     308    if(sUsrAg.indexOf("Version") > -1) {
     309        ga.browser.version    = /Version\/([^ ]*)/.exec( sUsrAg )[1];
     310        ga.browser.majversion = /Version\/([\d]*)/.exec( sUsrAg )[1];
     311    }
    306312
    307313    if(sUsrAg.indexOf("Chrome") > -1) {
Note: See TracChangeset for help on using the changeset viewer.