Skip to content

Commit b9ee220

Browse files
committed
feat: fix Unbound globalThis.fetch
1 parent 0f1f038 commit b9ee220

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/geolocation-controller/src/GeolocationController.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ export class GeolocationController extends BaseController<
205205
state: { ...getDefaultGeolocationControllerState(), ...state },
206206
});
207207

208-
this.#fetch = fetchFunction ?? globalThis.fetch;
208+
this.#fetch = fetchFunction ?? globalThis.fetch.bind(globalThis);
209209
this.#getGeolocationUrl = getGeolocationUrl;
210210
this.#ttlMs = ttlMs ?? DEFAULT_TTL_MS;
211211

0 commit comments

Comments
 (0)