web-manager 3.2.16 → 3.2.18

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/index.js +5 -5
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -421,7 +421,7 @@ function Manager() {
421
421
  exitPopup: {
422
422
  enabled: true,
423
423
  config: {
424
- timeout: 3600000,
424
+ timeout: 1000 * 60 * 60 * 4,
425
425
  handler: null,
426
426
  title: 'Special Offer!',
427
427
  message: 'Get 15% off your purchase of our <strong>Premium plans</strong>. <br><br> Get access to all features and unlimited usage.',
@@ -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.16",
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": {
@@ -36,4 +36,4 @@
36
36
  "firebase": "^9.23.0",
37
37
  "lazysizes": "^5.3.2"
38
38
  }
39
- }
39
+ }