@hackthenorth/analytics
Advanced tools
@@ -25,3 +25,3 @@ "use strict"; | ||
if (this.toLog.length > 0) { | ||
navigator.sendBeacon("url", JSON.stringify({ | ||
navigator.sendBeacon(this.config.url, JSON.stringify({ | ||
uid: this.config.uuid, | ||
@@ -28,0 +28,0 @@ data: data !== null && data !== void 0 ? data : this.toLog, |
{ | ||
"name": "@hackthenorth/analytics", | ||
"version": "0.0.8", | ||
"version": "0.0.9", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -43,3 +43,3 @@ import { v4 as uuidv4 } from "uuid"; | ||
navigator.sendBeacon( | ||
"url", | ||
this.config.url, | ||
JSON.stringify({ | ||
@@ -46,0 +46,0 @@ uid: this.config.uuid, |
9777
0.2%