Browse Source

Fix JS issue (#1940)

pull/1942/head
Keghani Kouzoujian 8 years ago
committed by GitHub
parent
commit
4787c58d58
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      javascript/i18n/phonenumbers/phonenumberutil.js

+ 2
- 1
javascript/i18n/phonenumbers/phonenumberutil.js View File

@ -1368,7 +1368,8 @@ i18n.phonenumbers.PhoneNumberUtil.prototype.getSupportedCallingCodes =
function() {
return goog.array.join(
this.getSupportedGlobalNetworkCallingCodes(),
Object.keys(i18n.phonenumbers.metadata.countryCodeToRegionCodeMap));
Object.keys(i18n.phonenumbers.metadata.countryCodeToRegionCodeMap)
.map(key => parseInt(key, 10)));
};


Loading…
Cancel
Save