nl_tokens: Reports new notification data if available
pl_tokens: function ready ( ) { const notes = getAllNotes ( <mask> . getState ( ) ) ; const timestamps = notes . map ( property ( 'timestamp' ) ) . map ( timestamp => Date . parse ( timestamp ) / 1000 ) ; let newNoteCount = timestamps . filter ( time => time > this . lastSeenTime ) . length ; if ( ! this . firstRender && this . lastSeenTime === 0 ) { newNoteCount = 0 ; } const latestType = get ( notes . slice ( - 1 ) [ 0 ] , 'type' , null ) ; store . dispatch ( { type : 'APP_RENDER_NOTES' , newNoteCount , latestType } ) ; this . hasNewNoteData = false ; this . firstRender = false ; }