File tree 1 file changed +6
-3
lines changed
packages/messaging-compat/src 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -21,10 +21,9 @@ import {
21
21
ComponentType ,
22
22
InstanceFactory
23
23
} from '@firebase/component' ;
24
+ import { MessagingCompatImpl , isSupported } from './messaging-compat' ;
24
25
import firebase , { _FirebaseNamespace } from '@firebase/app-compat' ;
25
26
26
- import { MessagingCompatImpl } from './messaging-compat' ;
27
-
28
27
declare module '@firebase/component' {
29
28
interface NameServiceMapping {
30
29
'messaging-compat' : MessagingCompatImpl ;
@@ -49,12 +48,16 @@ const messagingCompatFactory: InstanceFactory<'messaging-compat'> = (
49
48
}
50
49
} ;
51
50
51
+ const NAMESPACE_EXPORTS = {
52
+ isSupported
53
+ } ;
54
+
52
55
export function registerMessagingCompat ( ) : void {
53
56
( firebase as _FirebaseNamespace ) . INTERNAL . registerComponent (
54
57
new Component (
55
58
'messaging-compat' ,
56
59
messagingCompatFactory ,
57
60
ComponentType . PUBLIC
58
- )
61
+ ) . setServiceProps ( NAMESPACE_EXPORTS )
59
62
) ;
60
63
}
You can’t perform that action at this time.
0 commit comments