diff --git a/js/package.json b/js/package.json index c4ce5347..387e9cd3 100644 --- a/js/package.json +++ b/js/package.json @@ -44,5 +44,5 @@ "test": "jest --config jest.config.js" }, "types": "dist/schematic.d.ts", - "version": "0.1.3" + "version": "0.1.4" } diff --git a/js/src/index.ts b/js/src/index.ts index 7357ab5c..22136028 100644 --- a/js/src/index.ts +++ b/js/src/index.ts @@ -282,7 +282,7 @@ export class Schematic { }; private sendEvent = (event: Event): void => { - const captureUrl = this.getUrl(this.apiUrl, "e"); + const captureUrl = this.getUrl(this.eventUrl, "e"); const payload = JSON.stringify(event); fetch(captureUrl, {