Fix China fix making region required (#496)

This commit is contained in:
Emil Pålsson 2018-01-23 02:41:35 +01:00 committed by Michael Diego
parent 3d85c68bdb
commit b84c663f9a

View File

@ -62,7 +62,8 @@ export default function googleMapLoader(bootstrapURLKeys) {
''
);
const url = bootstrapURLKeys.region.toLocaleLowerCase() === 'cn'
const url = bootstrapURLKeys.region &&
bootstrapURLKeys.region.toLowerCase() === 'cn'
? 'http://maps.google.cn'
: 'https://maps.googleapis.com';