pstream is dead; long live pstream taciturnaxolotl.github.io/pstream-ng/
at main 12 lines 394 B view raw
1import { isExtensionActive } from "@/backend/extension/messaging"; 2import { useAuthStore } from "@/stores/auth"; 3 4let hasExtension: boolean | null = null; 5 6export async function hasProxyCheck(): Promise<boolean> { 7 if (hasExtension === null) { 8 hasExtension = await isExtensionActive(); 9 } 10 const hasProxy = Boolean(useAuthStore.getState().proxySet); 11 return hasExtension || hasProxy; 12}