File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
packages/firestore/src/lite-api Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -136,14 +136,14 @@ export class FirestoreSettingsImpl {
136136
137137 if ( this . experimentalForceLongPolling ) {
138138 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 {
140142 // For backwards compatibility, coerce the value to boolean even though
141143 // the TypeScript compiler has narrowed the type to boolean already.
142144 // noinspection PointlessBooleanExpressionJS
143145 this . experimentalAutoDetectLongPolling =
144146 ! ! settings . experimentalAutoDetectLongPolling ;
145- } else {
146- this . experimentalAutoDetectLongPolling = DEFAULT_AUTO_DETECT_LONG_POLLING ;
147147 }
148148
149149 this . useFetchStreams = ! ! settings . useFetchStreams ;
You can’t perform that action at this time.
0 commit comments