Skip to content

Commit

Permalink
fix(functions): Better fix for Functions Region
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesdaniels committed Nov 6, 2018
1 parent ad9b814 commit 7d175b3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/functions/functions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { FirebaseOptions, FirebaseAppConfig } from '@angular/fire';
import { FirebaseFunctions, FirebaseOptionsToken, FirebaseNameOrConfigToken, _firebaseAppFactory, FirebaseZoneScheduler } from '@angular/fire';

export const FunctionsRegionToken = new InjectionToken<string>('angularfire2.functions.region');
export const FunctionsDefaultRegion = 'us-central1';

@Injectable()
export class AngularFireFunctions {
Expand All @@ -28,7 +27,7 @@ export class AngularFireFunctions {

this.functions = zone.runOutsideAngular(() => {
const app = _firebaseAppFactory(options, nameOrConfig);
return app.functions(region || FunctionsDefaultRegion);
return app.functions(region || undefined);
});

}
Expand Down

0 comments on commit 7d175b3

Please sign in to comment.