Skip to content

Commit 89f196e

Browse files
committed
feat: no-cors mode for eagle check
1 parent fc81008 commit 89f196e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

apps/desktop/src/renderer/src/modules/command/commands/integration.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ const useRegisterEagleCommands = () => {
4545
enabled: ELECTRON && enableEagle && view !== undefined,
4646
queryFn: async () => {
4747
try {
48-
await ofetch("http://localhost:41595")
48+
await ofetch("http://localhost:41595", {
49+
mode: "no-cors",
50+
})
4951
return true
5052
} catch (error: unknown) {
5153
return (error as FetchError).data?.code === 401

0 commit comments

Comments
 (0)