File tree 1 file changed +3
-3
lines changed
packages/firestore/src/lite-api
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -136,14 +136,14 @@ export class FirestoreSettingsImpl {
136
136
137
137
if ( this . experimentalForceLongPolling ) {
138
138
this . experimentalAutoDetectLongPolling = false ;
139
- } else if ( settings . experimentalAutoDetectLongPolling !== undefined ) {
139
+ } else if ( settings . experimentalAutoDetectLongPolling === undefined ) {
140
+ this . experimentalAutoDetectLongPolling = DEFAULT_AUTO_DETECT_LONG_POLLING ;
141
+ } else {
140
142
// For backwards compatibility, coerce the value to boolean even though
141
143
// the TypeScript compiler has narrowed the type to boolean already.
142
144
// noinspection PointlessBooleanExpressionJS
143
145
this . experimentalAutoDetectLongPolling =
144
146
! ! settings . experimentalAutoDetectLongPolling ;
145
- } else {
146
- this . experimentalAutoDetectLongPolling = DEFAULT_AUTO_DETECT_LONG_POLLING ;
147
147
}
148
148
149
149
this . useFetchStreams = ! ! settings . useFetchStreams ;
You can’t perform that action at this time.
0 commit comments