When you get a new desktop notification, your browser will ask for your permission to show the desktop notification by default.
Chrome:
Click the "Allow" button in the pop up
Firefox:
Select "Always Show Notifications"
You can always change the notification permissions for a site.