You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by db...@apache.org on 2015/08/11 01:30:44 UTC

cordova-plugin-globalization git commit: CB-9476: Mobilespec crash on startup when running on Windows 10.

Repository: cordova-plugin-globalization
Updated Branches:
  refs/heads/master fe37ed671 -> ca37f40ac


CB-9476: Mobilespec crash on startup when running on Windows 10.

Windows 10 apparently deprecated and removed the navigator.userLanguage
property.  This change addresses the switch to navigator.language.


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-globalization/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-globalization/commit/ca37f40a
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-globalization/tree/ca37f40a
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-globalization/diff/ca37f40a

Branch: refs/heads/master
Commit: ca37f40acd3a08eae8fd9f3613a2eabee3303ebb
Parents: fe37ed6
Author: Rob Paveza <Ro...@microsoft.com>
Authored: Mon Aug 10 10:24:05 2015 -0700
Committer: Rob Paveza <Ro...@microsoft.com>
Committed: Mon Aug 10 10:24:05 2015 -0700

----------------------------------------------------------------------
 src/windows/GlobalizationProxy.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-globalization/blob/ca37f40a/src/windows/GlobalizationProxy.js
----------------------------------------------------------------------
diff --git a/src/windows/GlobalizationProxy.js b/src/windows/GlobalizationProxy.js
index 9297d79..83b64a1 100644
--- a/src/windows/GlobalizationProxy.js
+++ b/src/windows/GlobalizationProxy.js
@@ -13,7 +13,7 @@
 */
 
 var GlobalizationError = require('./GlobalizationError');
-var locale = navigator.userLanguage;
+var locale = navigator.userLanguage || navigator.language;
 
 var decimalFormatter;
 var currencyFormatter;


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