fix Vencloud not working on UserScript (#2213)

Co-authored-by: V <vendicated@riseup.net>
This commit is contained in:
[object Object] 2024-02-29 16:26:32 -08:00 committed by GitHub
parent 3ebde1aae8
commit 9179f55bf2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 8 additions and 12 deletions

View file

@ -39,9 +39,7 @@ function validateUrl(url: string) {
async function eraseAllData() {
const res = await fetch(new URL("/v1/", getCloudUrl()), {
method: "DELETE",
headers: new Headers({
Authorization: await getCloudAuth()
})
headers: { Authorization: await getCloudAuth() }
});
if (!res.ok) {