GD Star Rating – ‘msie’ of undefined TypeError: Cannot read property ‘msie’

Recently my GD Star Rating plugin stopped working on my site , Votes could not be cast anymore.

Using the Chrome Developer tab, I was able to see JS errors in the console

‘msie’ of undefined TypeError: Cannot read property ‘msie’ in 

Addubg the below code to the top of gd-star-rating/js/gdsr.js fixed it

jQuery.browser = {};

(function () {

    jQuery.browser.msie = false;

    jQuery.browser.version = 0;

    if (navigator.userAgent.match(/MSIE ([0-9]+)\./)) {

        jQuery.browser.msie = true;

        jQuery.browser.version = RegExp.$1;

    }

})();
GD Star Rating
loading...
GD Star Rating
loading...

Tags: comments not working, GD star rating, gdsr.js, jquery

Trackback from your site.