File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
packages/messaging-compat/src Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -21,10 +21,9 @@ import {
2121 ComponentType ,
2222 InstanceFactory
2323} from '@firebase/component' ;
24+ import { MessagingCompatImpl , isSupported } from './messaging-compat' ;
2425import firebase , { _FirebaseNamespace } from '@firebase/app-compat' ;
2526
26- import { MessagingCompatImpl } from './messaging-compat' ;
27-
2827declare module '@firebase/component' {
2928 interface NameServiceMapping {
3029 'messaging-compat' : MessagingCompatImpl ;
@@ -49,12 +48,16 @@ const messagingCompatFactory: InstanceFactory<'messaging-compat'> = (
4948 }
5049} ;
5150
51+ const NAMESPACE_EXPORTS = {
52+ isSupported
53+ } ;
54+
5255export function registerMessagingCompat ( ) : void {
5356 ( firebase as _FirebaseNamespace ) . INTERNAL . registerComponent (
5457 new Component (
5558 'messaging-compat' ,
5659 messagingCompatFactory ,
5760 ComponentType . PUBLIC
58- )
61+ ) . setServiceProps ( NAMESPACE_EXPORTS )
5962 ) ;
6063}
You can’t perform that action at this time.
0 commit comments