diff --git a/nip05.ts b/nip05.ts index 3c4e6fe..b5dccd2 100644 --- a/nip05.ts +++ b/nip05.ts @@ -1,6 +1,10 @@ import {ProfilePointer} from './nip19' -var _fetch = fetch +var _fetch: any + +try { + _fetch = fetch +} catch {} export function useFetchImplementation(fetchImplementation: any) { _fetch = fetchImplementation