From 11a5ac37fe463d35704bdb2ef75943bbf942696d Mon Sep 17 00:00:00 2001 From: takker99 <37929109+takker99@users.noreply.github.com> Date: Fri, 11 Apr 2025 14:45:27 +0900 Subject: [PATCH] fix(util): Avoid the `this` problem related to `globalThis.fetch` --- util.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util.ts b/util.ts index bca4c32..86d9dc3 100644 --- a/util.ts +++ b/util.ts @@ -81,7 +81,7 @@ export const setDefaults = < options: T, ): Omit & Required> => { const { - fetch = globalThis.fetch, + fetch = (input, init) => globalThis.fetch(input, init), baseURL = "https://scrapbox.io/", ...rest } = options;