From 4ac82536c944048b6ee71130873d7fc6b115cb6f Mon Sep 17 00:00:00 2001 From: Ansh Date: Wed, 30 Aug 2023 18:04:33 -0700 Subject: Fix 1304 refresh notifications when a notif is clicked or received (#1339) * refresh notifications when a notif is clicked * make notification syncing smarter * allow enabled appview proxy on mobile * put back syncqueue code --- src/lib/api/debug-appview-proxy-header.ts | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/lib/api/debug-appview-proxy-header.ts') diff --git a/src/lib/api/debug-appview-proxy-header.ts b/src/lib/api/debug-appview-proxy-header.ts index 7571bd37f..44363cde2 100644 --- a/src/lib/api/debug-appview-proxy-header.ts +++ b/src/lib/api/debug-appview-proxy-header.ts @@ -10,7 +10,6 @@ import {useState, useCallback, useEffect} from 'react' import {BskyAgent} from '@atproto/api' -import {isWeb} from 'platform/detection' import * as Storage from 'lib/storage' export function useDebugHeaderSetting(agent: BskyAgent): [boolean, () => void] { @@ -51,9 +50,6 @@ export function setDebugHeader(agent: BskyAgent, enabled: boolean) { } export async function applyDebugHeader(agent: BskyAgent) { - if (!isWeb) { - return - } if (await isEnabled()) { agent.api.xrpc.setHeader('x-appview-proxy', 'true') } -- cgit 1.4.1