owncast/web/utils/browserPushNotifications.ts

3 lines
124 B
TypeScript

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