Only notify about emails if tab isn't currently active (thanks @yhdesai for the idea)