Added null checks
This commit is contained in:
@ -91,6 +91,10 @@ export default class ServerEvents {
|
||||
}
|
||||
|
||||
notificationCount(e: ServerEvent) {
|
||||
if(!this.arn.notificationManager) {
|
||||
return
|
||||
}
|
||||
|
||||
this.arn.notificationManager.setCounter(parseInt(e.data))
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user