Skip to content

Commit f485cd7

Browse files
authored
Fix URLSearchParams append instead of set
Via #8
1 parent fea3e21 commit f485cd7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils/request.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export const generateSignatureToken = (
6666
var xhr = new XMLHttpRequest();
6767
xhr.timeout = 60000;
6868
var urlObj = new URL(authenticationEndpoint);
69-
urlObj.searchParams.set("t", Math.random().toString());
69+
urlObj.searchParams.append("t", Math.random().toString());
7070
xhr.open('GET', urlObj.toString());
7171
xhr.ontimeout = function (e) {
7272
return reject(errorMessages.AUTH_ENDPOINT_TIMEOUT);
@@ -128,4 +128,4 @@ export const uploadFile = (
128128
};
129129
uploadFileXHR.send(formData);
130130
});
131-
}
131+
}

0 commit comments

Comments
 (0)