[functions][js] default region via argument defaults not working in Babel7 - changed to inline or.
This commit is contained in:
parent
e13e98e010
commit
8ffa41b8ad
|
@ -46,9 +46,9 @@ function errorOrResult(possibleError): HttpsCallablePromise {
|
|||
* -------------
|
||||
*/
|
||||
export default class Functions extends ModuleBase {
|
||||
constructor(appOrRegion: App, region?: string = 'us-central1') {
|
||||
constructor(appOrRegion: App, region?: string) {
|
||||
let _app = appOrRegion;
|
||||
let _region = region;
|
||||
let _region = region || 'us-central1';
|
||||
|
||||
if (typeof _app === 'string') {
|
||||
_region = _app;
|
||||
|
|
Loading…
Reference in New Issue