about summary refs log tree commit diff
path: root/src/lib/api/debug-appview-proxy-header.ts
diff options
context:
space:
mode:
authorAnsh <anshnanda10@gmail.com>2023-08-30 18:04:33 -0700
committerGitHub <noreply@github.com>2023-08-30 18:04:33 -0700
commit4ac82536c944048b6ee71130873d7fc6b115cb6f (patch)
tree754aba2349b9907f0fa880aa3c7175ad0ab158e2 /src/lib/api/debug-appview-proxy-header.ts
parent4bec7c1d856a9e75b5594995b26b5e01847df848 (diff)
downloadvoidsky-4ac82536c944048b6ee71130873d7fc6b115cb6f.tar.zst
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
Diffstat (limited to 'src/lib/api/debug-appview-proxy-header.ts')
-rw-r--r--src/lib/api/debug-appview-proxy-header.ts4
1 files changed, 0 insertions, 4 deletions
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')
   }