owncast/web/utils/browserPushNotifications.ts

4 lines
124 B
TypeScript

export default function isPushNotificationSupported() {
return 'serviceWorker' in navigator && 'PushManager' in window;
}