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