owncast/web/utils/browserPushNotifications.ts

4 lines
124 B
TypeScript
Raw Normal View History

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