Skip to content

Commit 65b4d47

Browse files
Update GoogleApiComponent.js
Passes 'client' parameter to 'ScriptCache' so you can load Google Maps with Premium Plan
1 parent 45c0328 commit 65b4d47

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/GoogleApiComponent.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,16 @@ const defaultCreateCache = options => {
1616
const version = options.version || '3';
1717
const language = options.language || 'en';
1818
const url = options.url;
19+
const client = options.client;
1920

2021
return ScriptCache({
2122
google: GoogleApi({
2223
apiKey: apiKey,
2324
language: language,
2425
libraries: libraries,
2526
version: version,
26-
url: url
27+
url: url,
28+
client: client
2729
})
2830
});
2931
};

0 commit comments

Comments
 (0)