Skip to content

Commit

Permalink
Removed preferXHR option from HTTPRequest
Browse files Browse the repository at this point in the history
(since it had no effect)
  • Loading branch information
james-pre committed Sep 10, 2023
1 parent a3a97ea commit c5af27a
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/backend/HTTPRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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<HTTPRequest> {
Expand Down

0 comments on commit c5af27a

Please sign in to comment.