File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -2032,8 +2032,8 @@ declare namespace firebase.remoteConfig {
2032
2032
*/
2033
2033
export type LogLevel = 'debug' | 'error' | 'silent' ;
2034
2034
/**
2035
- * An async function that returns true if current browser context supports
2036
- * initialization of `RemoteConfig` instance (`firebase.remoteConfig()`).
2035
+ * Returns true if current browser context supports
2036
+ * initialization of a `RemoteConfig` instance (`firebase.remoteConfig()`).
2037
2037
*
2038
2038
* Returns false otherwise.
2039
2039
*/
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ export const enum ErrorCode {
31
31
FETCH_THROTTLE = 'fetch-throttle' ,
32
32
FETCH_PARSE = 'fetch-client-parse' ,
33
33
FETCH_STATUS = 'fetch-status' ,
34
- INDEXED_DB_UNSUPPORTED = 'indexed-db-unsupported '
34
+ INDEXED_DB_UNAVAILABLE = 'indexed-db-unavailable '
35
35
}
36
36
37
37
const ERROR_DESCRIPTION_MAP : { readonly [ key in ErrorCode ] : string } = {
@@ -66,7 +66,7 @@ const ERROR_DESCRIPTION_MAP: { readonly [key in ErrorCode]: string } = {
66
66
' Original error: {$originalErrorMessage}.' ,
67
67
[ ErrorCode . FETCH_STATUS ] :
68
68
'Fetch server returned an HTTP error status. HTTP status: {$httpStatus}.' ,
69
- [ ErrorCode . INDEXED_DB_UNSUPPORTED ] :
69
+ [ ErrorCode . INDEXED_DB_UNAVAILABLE ] :
70
70
'Indexed DB is not supported by current browser'
71
71
} ;
72
72
Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ export function registerRemoteConfig(): void {
73
73
}
74
74
// Guards against the SDK being used when indexedDB is not available.
75
75
if ( ! isIndexedDBAvailable ( ) ) {
76
- throw ERROR_FACTORY . create ( ErrorCode . INDEXED_DB_UNSUPPORTED ) ;
76
+ throw ERROR_FACTORY . create ( ErrorCode . INDEXED_DB_UNAVAILABLE ) ;
77
77
}
78
78
// Normalizes optional inputs.
79
79
const { projectId, apiKey, appId } = app . options ;
You can’t perform that action at this time.
0 commit comments