pgwbrowser.js
function(version) {
            var splitVersion = version.split('.', 2);
            pgwBrowser.browser.fullVersion = version;

            // Major version
            if (splitVersion[0]) {
                pgwBrowser.browser.majorVersion = parseInt(splitVersion[0]);
            }

            // Minor version
            if (splitVersion[1]) {
                pgwBrowser.browser.minorVersion = parseInt(splitVersion[1]);
            }

            return true;
        }
function(version) {
            var splitVersion = version.split('.', 2);
            pgwBrowser.browser.fullVersion = version;

            // Major version
            if (splitVersion[0]) {
                pgwBrowser.browser.majorVersion = parseInt(splitVersion[0]);
            }

            // Minor version
            if (splitVersion[1]) {
                pgwBrowser.browser.minorVersion = parseInt(splitVersion[1]);
            }

            return true;
        }
function ( version ) { var splitVersion = version . split ( '.' , 2 ) ; pgwBrowser . browser . fullVersion = version ; // Major version if ( splitVersion [ 0 ] ) { pgwBrowser . browser . majorVersion = parseInt ( splitVersion [ 0 ] ) ; } // Minor version if ( splitVersion [ 1 ] ) { pgwBrowser . browser . minorVersion = parseInt ( splitVersion [ 1 ] ) ; } return true ; }
Set browser version
Set browser version