Skip to content

Commit 844aa24

Browse files
committed
fix type for responseType for xhr
1 parent a4e38ad commit 844aa24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/templates/core/xhr/sendRequest.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export const sendRequest = async (
1010
const xhr = new XMLHttpRequest();
1111
xhr.open(options.method, url, true);
1212
xhr.withCredentials = config.WITH_CREDENTIALS;
13-
xhr.responseType = options.responseType;
13+
xhr.responseType = options.responseType ?? "";
1414

1515
headers.forEach((value, key) => {
1616
xhr.setRequestHeader(key, value);

0 commit comments

Comments
 (0)