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;

    }

})();
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...