diff --git a/src/components/DataUploader.vue b/src/components/DataUploader.vue index 018903b1b..e977f0f37 100644 --- a/src/components/DataUploader.vue +++ b/src/components/DataUploader.vue @@ -350,7 +350,7 @@ export default class DataUploader extends Vue { method: 'POST', body: encryptedStream, duplex: 'half', - } as any); + } as RequestInit); } catch { this.errorMessageDelegate = () => this.strings['data_uploader_xhr_upload_error']; } diff --git a/src/components/PipingUI.vue b/src/components/PipingUI.vue index 818d5f15c..f60530dc4 100644 --- a/src/components/PipingUI.vue +++ b/src/components/PipingUI.vue @@ -439,7 +439,7 @@ export default class PipingUI extends Vue { // Disable "Powered by PQINA" link filePond.setOptions({ credits: false, - } as any); + }); // Update random strings this.updateRandomStrs(); diff --git a/src/utils.ts b/src/utils.ts index 562544644..b5070dea3 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -179,7 +179,7 @@ export async function supportsFetchUploadStreaming(pipingServerUrl: string): Pro method: 'POST', body: stream, duplex: 'half', - } as any) + } as RequestInit) // Without this, Safari causes an error "Unhandled Promise Rejection: NotSupportedError: ReadableStream uploading is not supported" .catch(() => "fetch_error"); const getResPromise = fetch(url);