I am making a site in JavaScript. It uses Firebase push-notifications. I get notifications when the site is closed, or it's on a different tab. However, I want to receive notifications even if the site is already open, or do something when it receives a notification. How can I do that?