kthornbloom/Monthly

Calendar does not load in IE 10

Closed this issue · 3 comments

I noticed there is a script error that is preventing the application from loading onto the page in Internet Explorer 10.

SCRIPT5007: Unable to get property 'toLowerCase' of undefined or null reference
monthly.js, line 37 character 5

Do you intend to fix this error? It is happening on the demo site you have set up as well as with my own implementation of the code.

This seems to be an internet explorer only issue as the calendar is working exceptionally for me in all other browsers.

Apparently IE < 11 doesn't support navigator.language, have to use navigator.browserLanguage. I submitted a PR to fix.

Thanks for the quick turn around, I was able to implement the fix that @richardtallent came up with and it works great!