From 9cd9e6e74022da4e8c97ce3024e9258a77892f45 Mon Sep 17 00:00:00 2001 From: dnson Date: Mon, 27 Jun 2022 13:18:02 +0700 Subject: [PATCH] remove stringify (#232) --- lib/record.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/record.js b/lib/record.js index 3415f2ba..b9ac1912 100644 --- a/lib/record.js +++ b/lib/record.js @@ -215,7 +215,7 @@ exports._sendRecord = function _sendRecord (request, success, error, blockedEven } } else { requestHeaders['X-TD-Write-Key'] = request.apikey - payload = JSON.stringify(request.record) + payload = request.record } if (window.fetch && (this._windowBeingUnloaded || isClickedLink)) {