From 5fcb9590028feaa19c1591ea6769e43ee8461080 Mon Sep 17 00:00:00 2001 From: Paul Bienkowski Date: Fri, 26 Nov 2021 13:37:40 +0100 Subject: [PATCH] fix: remove typescript annotations from .js file --- frontend/src/api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/api.js b/frontend/src/api.js index aa6ac9f..03a87b3 100644 --- a/frontend/src/api.js +++ b/frontend/src/api.js @@ -4,7 +4,7 @@ import {setLogin} from 'reducers/login' import configPromise from 'config' import download from 'downloadjs' -function getFileNameFromContentDispostionHeader(contentDisposition: string): string | undefined { +function getFileNameFromContentDispostionHeader(contentDisposition) { const standardPattern = /filename=(["']?)(.+)\1/i const wrongPattern = /filename=([^"'][^;"'\n]+)/i