From c5af27a79bb6eb75fc5c656b5f2cbd66d0f8552d Mon Sep 17 00:00:00 2001 From: "Dr. Vortex" Date: Sun, 10 Sep 2023 09:20:38 -0500 Subject: [PATCH] Removed preferXHR option from HTTPRequest (since it had no effect) --- src/backend/HTTPRequest.ts | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/backend/HTTPRequest.ts b/src/backend/HTTPRequest.ts index 4a961f65..b1dd4cf8 100644 --- a/src/backend/HTTPRequest.ts +++ b/src/backend/HTTPRequest.ts @@ -21,9 +21,6 @@ export interface HTTPRequestOptions { // Used as the URL prefix for fetched files. // Default: Fetch files relative to the index. baseUrl?: string; - // Whether to prefer XmlHttpRequest or fetch for async operations if both are available. - // Default: false - preferXHR?: boolean; } function syncNotAvailableError(): never { @@ -72,11 +69,6 @@ export class HTTPRequest extends BaseFileSystem implements FileSystem { optional: true, description: 'Used as the URL prefix for fetched files. Default: Fetch files relative to the index.', }, - preferXHR: { - type: 'boolean', - optional: true, - description: 'Whether to prefer XmlHttpRequest or fetch for async operations if both are available. Default: false', - }, }; public static async Create(opts: HTTPRequestOptions): Promise {