File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -11,13 +11,15 @@ const defaultCreateCache = (options) => {
11
11
const libraries = options . libraries || [ 'places' ] ;
12
12
const version = options . version || '3.29' ;
13
13
const language = options . language || 'en' ;
14
+ const url = options . url ;
14
15
15
16
return ScriptCache ( {
16
17
google : GoogleApi ( {
17
18
apiKey : apiKey ,
18
19
language : language ,
19
20
libraries : libraries ,
20
- version : version
21
+ version : version ,
22
+ url : url
21
23
} )
22
24
} ) ;
23
25
} ;
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ export const GoogleApi = function(opts) {
9
9
const apiKey = opts . apiKey ;
10
10
const libraries = opts . libraries || [ 'places' ] ;
11
11
const client = opts . client ;
12
- const URL = 'https://maps.googleapis.com/maps/api/js' ;
12
+ const URL = opts . url || 'https://maps.googleapis.com/maps/api/js' ;
13
13
14
14
const googleVersion = opts . version || '3' ;
15
15
You can’t perform that action at this time.
0 commit comments