Skip to content

Commit ee71e75

Browse files
author
Ari
committed
Updates with custom url
1 parent b7dc78a commit ee71e75

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

dist/GoogleApiComponent.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,13 +85,15 @@
8585
var libraries = options.libraries || ['places'];
8686
var version = options.version || '3.29';
8787
var language = options.language || 'en';
88+
var url = options.url;
8889

8990
return (0, _ScriptCache.ScriptCache)({
9091
google: (0, _GoogleApi2.default)({
9192
apiKey: apiKey,
9293
language: language,
9394
libraries: libraries,
94-
version: version
95+
version: version,
96+
url: url
9597
})
9698
});
9799
};

dist/lib/GoogleApi.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
var apiKey = opts.apiKey;
3535
var libraries = opts.libraries || ['places'];
3636
var client = opts.client;
37-
var URL = 'https://maps.googleapis.com/maps/api/js';
37+
var URL = opts.url || 'https://maps.googleapis.com/maps/api/js';
3838

3939
var googleVersion = opts.version || '3';
4040

0 commit comments

Comments
 (0)