Skip to content
This repository was archived by the owner on Apr 4, 2023. It is now read-only.

Commit 2dbf72c

Browse files
Merge remote-tracking branch 'origin/master'
2 parents 103245f + 2349164 commit 2dbf72c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/functions/functions.ios.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ function getFunctions(region?: firebase.functions.SupportedRegions): FIRFunction
1212
}
1313

1414
export function httpsCallable<I = {}, O = {}>(functionName: string, region?: firebase.functions.SupportedRegions): HttpsCallable<I, O> {
15-
16-
const functions = getFunctions();
15+
const functions = getFunctions(region);
1716

1817
return (data: I) => new Promise((resolve, reject) => {
1918

@@ -41,4 +40,4 @@ export function httpsCallable<I = {}, O = {}>(functionName: string, region?: fir
4140
export function useFunctionsEmulator(origin: string): void {
4241
const functions = getFunctions();
4342
functions.useFunctionsEmulatorOrigin(origin);
44-
}
43+
}

0 commit comments

Comments
 (0)