diff --git a/src/sw.ts b/src/sw.ts index a58d60c8e..e9716e3ed 100644 --- a/src/sw.ts +++ b/src/sw.ts @@ -1,7 +1,7 @@ /// import { precacheAndRoute, cleanupOutdatedCaches } from 'workbox-precaching'; import { usePushNotifications } from './sw/pushNotification'; -import { EventType } from 'matrix-js-sdk'; +import { EventType } from "matrix-js-sdk/lib/@types/event"; export type {}; declare const self: ServiceWorkerGlobalScope; diff --git a/src/sw/pushNotification.ts b/src/sw/pushNotification.ts index f1331ff54..8e5073bca 100644 --- a/src/sw/pushNotification.ts +++ b/src/sw/pushNotification.ts @@ -1,4 +1,4 @@ -import { EventType } from "matrix-js-sdk"; +import { EventType } from "matrix-js-sdk/lib/@types/event"; const DEFAULT_NOTIFICATION_ICON = '/public/res/apple/apple-touch-icon-180x180.png'; const DEFAULT_NOTIFICATION_BADGE = '/public/res/apple-touch-icon-72x72.png';