Check if tab is in focus before sending a notification + name...

Added a check if the tab was focused before sending a notification, also adds name to the notification.