From 9544093ffd9c6322930335818c8cfb55bb7529e3 Mon Sep 17 00:00:00 2001 From: morethanwords Date: Fri, 18 Jun 2021 16:29:25 +0300 Subject: [PATCH] Try to enable push notifications --- src/lib/serviceWorker/index.service.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/serviceWorker/index.service.ts b/src/lib/serviceWorker/index.service.ts index 47daa99c..4825d27d 100644 --- a/src/lib/serviceWorker/index.service.ts +++ b/src/lib/serviceWorker/index.service.ts @@ -16,7 +16,7 @@ import { logger, LogTypes } from '../logger'; import { CancellablePromise } from '../../helpers/cancellablePromise'; import { CACHE_ASSETS_NAME, requestCache } from './cache'; import onStreamFetch from './stream'; -// import { closeAllNotifications, onPing } from './push'; +import { closeAllNotifications, onPing } from './push'; export const log = logger('SW', LogTypes.Error | LogTypes.Debug | LogTypes.Log | LogTypes.Warn); const ctx = self as any as ServiceWorkerGlobalScope; @@ -62,10 +62,10 @@ const taskListeners: { [type in ServiceWorkerTask['type']]: (task: any, event: ExtendableMessageEvent) => void } = { notifications_clear: () => { - // closeAllNotifications(); + closeAllNotifications(); }, ping: (task: ServiceWorkerPingTask, event) => { - // onPing(task, event); + onPing(task, event); }, requestFilePart: (task: RequestFilePartTaskResponse) => { const promise = deferredPromises[task.id];