fix: fetch device id
This commit is contained in:
@@ -50,7 +50,7 @@ export class Api {
|
|||||||
const response = await fetch(url, {
|
const response = await fetch(url, {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: await this.resolveHeaders(),
|
headers: await this.resolveHeaders(),
|
||||||
body: JSON.stringify(data ?? {}),
|
body: data ? JSON.stringify(data ?? {}) : undefined,
|
||||||
keepalive: true,
|
keepalive: true,
|
||||||
...options,
|
...options,
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user