If you built a macOS desktop app that makes notification sounds even when the machine is in "Do Not Disturb" focus mode you should feel very bad about what you have done

(My laptop made two mysterious ping noises during the online talk I gave this morning)

@simon never trust an app that isn't a web app.
@ian @simon it was probably a web app that made the DND-ignorant noise 😕
@numist @simon that's a browser bug.
@ian @simon hmm, is Electron a browser? 
@ian @simon more seriously, is there even a web API for differentiating notification sounds that should be silenced by DND vs, say, audio tracks from videos that you want to hear regardless?

@numist @simon
https://developer.mozilla.org/en-US/docs/Web/API/Notifications_API

But presumably DND should mute sound from all background tabs?

Notifications API - Web APIs | MDN

The Notifications API allows web pages to control the display of system notifications to the end user. These are outside the top-level browsing context viewport, so therefore can be displayed even when the user has switched tabs or moved to a different app. The API is designed to be compatible with existing notification systems, across different platforms.

MDN Web Docs
@ian @simon I feel like that behaviour would violate least surprise for web-hosted video/music/podcasts
@numist @simon
Or maybe don't let a background tab start playing when you're in DND?
@ian @numist @simon It does not. If you think about it for a sec it would not make sense to do so, otherwise you couldn't put a music player into a browser that you listen to when you when you are working and don't want to be bothered by notifications.