summary refs log tree commit diff
path: root/scripts
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-10-31 19:37:46 +1100
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-10-31 19:37:46 +1100
commit3dfd864aff15d3881e9fe1b97c75cb850115b477 (patch)
tree1215f1099720353e8a6147938cc02abcf77b97e7 /scripts
parentFix message patching sending old message rather than updated one (diff)
downloadserver-3dfd864aff15d3881e9fe1b97c75cb850115b477.tar.xz
Fast connect but send identify
Diffstat (limited to 'scripts')
-rw-r--r--scripts/client.js6
1 files changed, 6 insertions, 0 deletions
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;
 };