Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
fix android quirks (navigator.languages is empty on Android >= 5.0) #74
I encountered an issue on Cordova + jQuery + jquery-localize on Android 5.0 and up (confirmed on 5.0 / 5.1 / 6.0 AVD emulators). I guess it is the same issue as issue #72 .
This issue happens when
In line 20 of
then in the line 14, it fails with the message "Uncaught TypeError: Cannot read property 'replace' of undefined".
So here's the fix for this, ensuring
I believe this trivial patch has no side effect (for older Android versions / iOS / other browsers).