web-manager 3.2.17 → 3.2.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +4 -4
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1379,6 +1379,10 @@ function Manager() {
1379
1379
  ) {
1380
1380
  var chatsyPath = 'libraries.chatsy.config';
1381
1381
 
1382
+ // Immediately hide the fake button
1383
+ select('#prechat-btn').hide();
1384
+
1385
+ // Load the script
1382
1386
  loadScript({
1383
1387
  src: 'https://app.chatsy.ai/resources/script.js',
1384
1388
  // src: 'http://localhost:4001/resources/script.js',
@@ -1393,10 +1397,6 @@ function Manager() {
1393
1397
  // Listen for Chatsy status
1394
1398
  chatsy.on('status', function(event, status) {
1395
1399
  if (status === 'loaded') {
1396
- setTimeout(function () {
1397
- select('#prechat-btn').hide();
1398
- }, 1000);
1399
-
1400
1400
  chatsy.open();
1401
1401
  }
1402
1402
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "web-manager",
3
- "version": "3.2.17",
3
+ "version": "3.2.18",
4
4
  "description": "Easily access important variables such as the query string, current domain, and current page in a single object.",
5
5
  "main": "index.js",
6
6
  "scripts": {