OpenPanel is an open-source web and product analytics platform, an open-source alternative to Mixpanel with optional self-hosting.
fix: fetch device id
Carl-Gerhard Lindesvärd32415d31d9e0
diff --git a/packages/sdks/sdk/src/api.ts b/packages/sdks/sdk/src/api.tsindex 1e8e7858e..3a1673691 100644--- a/packages/sdks/sdk/src/api.ts+++ b/packages/sdks/sdk/src/api.ts@@ -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,});