mirror of
https://github.com/Sevichecc/Urara-Blog.git
synced 2025-05-02 07:09:30 +08:00
12 lines
464 B
Text
12 lines
464 B
Text
const Blob = globalThis.Blob;
|
|
const File = globalThis.File;
|
|
const FormData = globalThis.FormData;
|
|
const Headers = globalThis.Headers;
|
|
const Request = globalThis.Request;
|
|
const Response = globalThis.Response;
|
|
const AbortController = globalThis.AbortController;
|
|
const fetch = globalThis.fetch || (() => {
|
|
throw new Error("global fetch is not available!");
|
|
});
|
|
|
|
export { AbortController, Blob, File, FormData, Headers, Request, Response, fetch as default, fetch };
|