Skip to content

Commit b733490

Browse files
authored
Merge pull request #41 from ismaelgt/master
Use Google Maps API release version
2 parents 9595a0f + 6eac923 commit b733490

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/GoogleApiComponent.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const defaultCreateCache = (options) => {
99
options = options || {};
1010
const apiKey = options.apiKey;
1111
const libraries = options.libraries || ['places'];
12-
const version = options.version || '3.24';
12+
const version = options.version || '3';
1313

1414
return ScriptCache({
1515
google: GoogleApi({apiKey: apiKey, libraries: libraries, version: version})
@@ -19,7 +19,7 @@ const defaultCreateCache = (options) => {
1919
export const wrapper = (options) => (WrappedComponent) => {
2020
const apiKey = options.apiKey;
2121
const libraries = options.libraries || ['places'];
22-
const version = options.version || '3.24';
22+
const version = options.version || '3';
2323
const createCache = options.createCache || defaultCreateCache;
2424

2525
class Wrapper extends React.Component {

src/lib/GoogleApi.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export const GoogleApi = function(opts) {
1111
const client = opts.client;
1212
const URL = 'https://maps.googleapis.com/maps/api/js';
1313

14-
const googleVersion = opts.version || '3.24';
14+
const googleVersion = opts.version || '3';
1515

1616
let script = null;
1717
let google = window.google || null;

0 commit comments

Comments
 (0)