colourcolourcolourcolourcolourcolourcolour
Forgot my colour selection

Get A User’s Google Gears Version

This is a JavaScript function I wrote for an upcoming statistics tracking website of mine that allows you to get the Google Gears version of a visitors browser. I decided to pull it from my site due to the Google Gears version not really being of interest to anyone - but someone may well find it useful.

function gearsversion(){
     if (window.google && google.gears){
     var gearsinfo = google.gears.factory.getBuildInfo();
     var gearsversion = gearsinfo.split(";");
     return gearsversion[0];
     }
}

I did it a dumb ass way. See the factory API docs to get the version properly. (Thanks Chris)

Posted on November 18th, 2008. Filed under Code, and tagged with .

Leave a Comment

Make yourself heard

Reader Comments

2 responses so farLeave a comment

Montly Post Archives

Posts from previous months