fix: fetch device id

This commit is contained in:
Carl-Gerhard Lindesvärd
2025-11-25 10:24:11 +01:00
parent f7055c0ebd
commit 32415d31d9

View File

@@ -50,7 +50,7 @@ export class Api {
const response = await fetch(url, {
method: 'POST',
headers: await this.resolveHeaders(),
body: JSON.stringify(data ?? {}),
body: data ? JSON.stringify(data ?? {}) : undefined,
keepalive: true,
...options,
});