I want my chrome extension to take a notification.id
, and:
- Update an existing notification if it does exist. OR
- Create a new notification if it doesn't exist.
Calling clear()
then create()
is not ideal, since the animation is visually jarring for both remove()
and create()
methods, where I want to update without animations. Plus, obviously, calling update()
on a disappeared notification doesn't do anything.
Is there an easy way to implement this?
See Question&Answers more detail:os