You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2018/11/05 05:40:34 UTC

[GitHub] pradiv-kumar opened a new issue #534: User agent check in Cordova.js raises exception in Android 9

pradiv-kumar opened a new issue #534: User agent check in Cordova.js raises exception in Android 9
URL: https://github.com/apache/cordova-android/issues/534
 
 
   ```
   androidExec.init = function() {
   var check = navigator.userAgent.toLowerCase().match(android\s[0-9].[0-9]);
   ```
   
   navigator.userAgent in devices running Android Pie returns 9 and not 9.0 and this raises an exception since we try to match the user agent with "android\s[0-9].[0-9]" which expects the user agent to be 9.x

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org