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) => {
1111 const libraries = options . libraries || [ 'places' ] ;
1212 const version = options . version || '3.29' ;
1313 const language = options . language || 'en' ;
14+ const url = options . url ;
1415
1516 return ScriptCache ( {
1617 google : GoogleApi ( {
1718 apiKey : apiKey ,
1819 language : language ,
1920 libraries : libraries ,
20- version : version
21+ version : version ,
22+ url : url
2123 } )
2224 } ) ;
2325} ;
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ export const GoogleApi = function(opts) {
99 const apiKey = opts . apiKey ;
1010 const libraries = opts . libraries || [ 'places' ] ;
1111 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' ;
1313
1414 const googleVersion = opts . version || '3' ;
1515
You can’t perform that action at this time.
0 commit comments