Skip to content

Commit 280cc15

Browse files
authored
Pass region option from GoogleApiComponent
Pass region option from GoogleApiComponent to GoogleApi
1 parent e9ed46d commit 280cc15

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/GoogleApiComponent.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ const defaultCreateCache = options => {
1717
const language = options.language || 'en';
1818
const url = options.url;
1919
const client = options.client;
20+
const region = options.region || null;
21+
2022

2123
return ScriptCache({
2224
google: GoogleApi({
@@ -25,7 +27,8 @@ const defaultCreateCache = options => {
2527
libraries: libraries,
2628
version: version,
2729
url: url,
28-
client: client
30+
client: client,
31+
region: region
2932
})
3033
});
3134
};

0 commit comments

Comments
 (0)