From 43dfa5fa204ce5d84ce802f4a5d965a909ddf6c8 Mon Sep 17 00:00:00 2001 From: Ethan Davidson <31261035+EthanThatOneKid@users.noreply.github.com> Date: Fri, 20 Sep 2024 21:37:55 -0700 Subject: [PATCH] fix lint error error[no-window]: Window is no longer available in Deno --- lib/lc/client.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/lc/client.ts b/lib/lc/client.ts index 828ddfd..80f5fff 100644 --- a/lib/lc/client.ts +++ b/lib/lc/client.ts @@ -11,7 +11,9 @@ import { gql } from "./gql.ts"; */ export class LCClient implements LCClientInterface { constructor( - private readonly fetch: typeof window.fetch = window.fetch.bind(window), + private readonly fetch: typeof globalThis.fetch = globalThis.fetch.bind( + globalThis, + ), ) {} /**