Commit 3f5c41ed authored by Libin Lu's avatar Libin Lu Committed by GitHub

Merge pull request #440 from jtakahashi0604/patch-1

Fix type Listner to Listener
parents 157ad2ff e12646f8
...@@ -29,7 +29,7 @@ export default class PushController extends Component { ...@@ -29,7 +29,7 @@ export default class PushController extends Component {
console.log("INITIAL NOTIFICATION", notif) console.log("INITIAL NOTIFICATION", notif)
}); });
this.notificationListner = FCM.on(FCMEvent.Notification, notif => { this.notificationListener = FCM.on(FCMEvent.Notification, notif => {
console.log("Notification", notif); console.log("Notification", notif);
if(notif.local_notification){ if(notif.local_notification){
return; return;
...@@ -74,7 +74,7 @@ export default class PushController extends Component { ...@@ -74,7 +74,7 @@ export default class PushController extends Component {
} }
componentWillUnmount() { componentWillUnmount() {
this.notificationListner.remove(); this.notificationListener.remove();
this.refreshTokenListener.remove(); this.refreshTokenListener.remove();
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment