From 398d5829621ea626940f15d2f4e305c9689f1259 Mon Sep 17 00:00:00 2001 From: less Date: Thu, 21 Sep 2023 20:46:26 +0700 Subject: [PATCH] chore: disable Beams --- public/service-worker.js | 2 +- src/composables/useSpaceSubscription.ts | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/public/service-worker.js b/public/service-worker.js index 3b1ed32e9acc..0677db707bc3 100644 --- a/public/service-worker.js +++ b/public/service-worker.js @@ -1 +1 @@ -importScripts('https://js.pusher.com/beams/service-worker.js'); +// importScripts('https://js.pusher.com/beams/service-worker.js'); diff --git a/src/composables/useSpaceSubscription.ts b/src/composables/useSpaceSubscription.ts index d09fcdb82421..0d92e333775b 100644 --- a/src/composables/useSpaceSubscription.ts +++ b/src/composables/useSpaceSubscription.ts @@ -1,5 +1,5 @@ import { SUBSCRIPTIONS_QUERY } from '@/helpers/queries'; -import { beams } from '../helpers/beams'; +// import { beams } from '@/helpers/beams'; import { useFlashNotification } from './useFlashNotification'; import client from '@/helpers/clientEIP712'; @@ -52,13 +52,13 @@ export function useSpaceSubscription(spaceId: any) { const configurePush = async () => { try { - if (!beams) { - notify(['red', t('notificationsNotSupported')]); - return; - } + // if (!beams) { + // notify(['red', t('notificationsNotSupported')]); + // return; + // } - await beams.start(); - await beams.addDeviceInterest(web3Account.value); + // await beams.start(); + // await beams.addDeviceInterest(web3Account.value); await client.subscribe(aliasWallet.value, aliasWallet.value.address, { from: web3Account.value, space: spaceId