Skip to content

Commit

Permalink
chore: disable Beams
Browse files Browse the repository at this point in the history
  • Loading branch information
bonustrack committed Sep 21, 2023
1 parent 3d3da61 commit 398d582
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion public/service-worker.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
importScripts('https://js.pusher.com/beams/service-worker.js');
// importScripts('https://js.pusher.com/beams/service-worker.js');
14 changes: 7 additions & 7 deletions src/composables/useSpaceSubscription.ts
Original file line number Diff line number Diff line change
@@ -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';

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 398d582

Please sign in to comment.