aboutsummaryrefslogtreecommitdiffstats
path: root/js/vapi-client.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/vapi-client.js')
-rw-r--r--js/vapi-client.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/js/vapi-client.js b/js/vapi-client.js
index 4c48d03..aeddd81 100644
--- a/js/vapi-client.js
+++ b/js/vapi-client.js
@@ -26,6 +26,12 @@
'use strict';
(function (self) {
+ if (self.vAPI === undefined) {
+ self.vAPI = {};
+ }
+
+ let vAPI = self.vAPI;
+
vAPI.sessionId = String.fromCharCode(Date.now() % 25 + 97) +
Math.random().toString(36).slice(2);