From 3dfd864aff15d3881e9fe1b97c75cb850115b477 Mon Sep 17 00:00:00 2001 From: Madeline <46743919+MaddyUnderStars@users.noreply.github.com> Date: Mon, 31 Oct 2022 19:37:46 +1100 Subject: [PATCH] Fast connect but send identify --- assets/client_test/index.html | 75 ++++++++++++++++++++++++++++++++++- scripts/client.js | 6 +++ 2 files changed, 80 insertions(+), 1 deletion(-) diff --git a/assets/client_test/index.html b/assets/client_test/index.html index 7306db60..31be10f1 100644 --- a/assets/client_test/index.html +++ b/assets/client_test/index.html @@ -46,7 +46,80 @@ - + + + + diff --git a/scripts/client.js b/scripts/client.js index b31f2fcc..b42217a0 100644 --- a/scripts/client.js +++ b/scripts/client.js @@ -119,6 +119,12 @@ const doPatch = (content) => { "console.log('Prevented deletion of localStorage')" ); + // fast identify + content = content.replaceAll( + "e.isFastConnect=t;t?e._doFastConnectIdentify():e._doResumeOrIdentify()", + "e.isFastConnect=t; if (t !== undefined) e._doResumeOrIdentify();" + ); + return content; };