File tree Expand file tree Collapse file tree 4 files changed +14
-10
lines changed Expand file tree Collapse file tree 4 files changed +14
-10
lines changed Original file line number Diff line number Diff line change @@ -34,8 +34,9 @@ function registerRemoteConfigCompat(
34
34
'remoteConfig-compat' ,
35
35
remoteConfigFactory ,
36
36
ComponentType . PUBLIC
37
- ) . setMultipleInstances ( true )
38
- . setServiceProps ( { isSupported } )
37
+ )
38
+ . setMultipleInstances ( true )
39
+ . setServiceProps ( { isSupported } )
39
40
) ;
40
41
41
42
firebaseInstance . registerVersion ( packageName , version ) ;
Original file line number Diff line number Diff line change @@ -41,7 +41,8 @@ import {
41
41
export { isSupported } ;
42
42
43
43
export class RemoteConfigCompatImpl
44
- implements RemoteConfigCompat , _FirebaseService {
44
+ implements RemoteConfigCompat , _FirebaseService
45
+ {
45
46
constructor ( public app : FirebaseApp , readonly _delegate : RemoteConfig ) { }
46
47
47
48
get defaultConfig ( ) : { [ key : string ] : string | number | boolean } {
Original file line number Diff line number Diff line change 17
17
18
18
import { RemoteConfig } from './public_types' ;
19
19
import { activate , fetchConfig } from './api' ;
20
- import { getModularInstance , isIndexedDBAvailable , validateIndexedDBOpenable } from '@firebase/util' ;
20
+ import {
21
+ getModularInstance ,
22
+ isIndexedDBAvailable ,
23
+ validateIndexedDBOpenable
24
+ } from '@firebase/util' ;
21
25
22
26
// This API is put in a separate file, so we can stub fetchConfig and activate in tests.
23
27
// It's not possible to stub standalone functions from the same module.
@@ -45,12 +49,12 @@ export async function fetchAndActivate(
45
49
*
46
50
* 1. Check if IndexedDB exists in the browser environment.
47
51
* 2. Check if the current browser context allows IndexedDB `open()` calls.
48
- *
52
+ *
49
53
* @returns A `Promise` which resolves to true if a {@link RemoteConfig} instance
50
54
* can be initialized in this environment, or false if it cannot.
51
55
* @public
52
56
*/
53
- export async function isSupported ( ) : Promise < boolean > {
57
+ export async function isSupported ( ) : Promise < boolean > {
54
58
if ( ! isIndexedDBAvailable ( ) ) {
55
59
return false ;
56
60
}
@@ -61,4 +65,4 @@ export async function fetchAndActivate(
61
65
} catch ( error ) {
62
66
return false ;
63
67
}
64
- }
68
+ }
Original file line number Diff line number Diff line change @@ -19,9 +19,7 @@ import {
19
19
registerVersion ,
20
20
SDK_VERSION
21
21
} from '@firebase/app' ;
22
- import {
23
- isIndexedDBAvailable
24
- } from '@firebase/util' ;
22
+ import { isIndexedDBAvailable } from '@firebase/util' ;
25
23
import {
26
24
Component ,
27
25
ComponentType ,
You can’t perform that action at this time.
0 commit comments