This repository was archived by the owner on Apr 4, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -35,13 +35,12 @@ export function initFirebaseMessaging(options) {
3535 _showNotifications = options . showNotifications === undefined ? _showNotifications : ! ! options . showNotifications ;
3636 _showNotificationsWhenInForeground = options . showNotificationsWhenInForeground === undefined ? _showNotificationsWhenInForeground : ! ! options . showNotificationsWhenInForeground ;
3737
38- if ( options . onMessageReceivedCallback !== undefined || options . onPushTokenReceivedCallback !== undefined ) {
39- if ( options . onMessageReceivedCallback !== undefined ) {
40- addOnMessageReceivedCallback ( options . onMessageReceivedCallback ) ;
41- }
42- if ( options . onPushTokenReceivedCallback !== undefined ) {
43- addOnPushTokenReceivedCallback ( options . onPushTokenReceivedCallback ) ;
44- }
38+ if ( options . onMessageReceivedCallback !== undefined ) {
39+ addOnMessageReceivedCallback ( options . onMessageReceivedCallback ) ;
40+ }
41+
42+ if ( options . onPushTokenReceivedCallback !== undefined ) {
43+ addOnPushTokenReceivedCallback ( options . onPushTokenReceivedCallback ) ;
4544 }
4645}
4746
You can’t perform that action at this time.
0 commit comments