web-manager 3.1.37 → 3.1.39

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 +26 -5
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -96,7 +96,20 @@ function Manager() {
96
96
  contact: {
97
97
  emailSupport: '',
98
98
  emailBusiness: '',
99
- },
99
+ },
100
+ download: {
101
+ windows: '',
102
+ mac: '',
103
+ linuxDebian: '',
104
+ linuxSnap: '',
105
+ },
106
+ extension: {
107
+ chrome: '',
108
+ firefox: '',
109
+ edge: '',
110
+ opera: '',
111
+ safari: '',
112
+ },
100
113
  validRedirectHosts: [],
101
114
  // preferences: {
102
115
  // // firebase: {
@@ -628,9 +641,12 @@ function Manager() {
628
641
  This.properties.global.version = configuration.global.version;
629
642
  This.properties.global.url = configuration.global.url;
630
643
  This.properties.global.cacheBreaker = configuration.global.cacheBreaker;
631
- This.properties.global.brand.name = configuration.global.brand.name;
632
- This.properties.global.contact.emailSupport = configuration.global.contact.emailSupport;
633
- This.properties.global.contact.emailBusiness = configuration.global.contact.emailBusiness;
644
+
645
+ This.properties.global.brand = configuration.global.brand;
646
+ This.properties.global.contact = configuration.global.contact;
647
+ This.properties.global.download = configuration.global.download;
648
+ This.properties.global.extension = configuration.global.extension;
649
+
634
650
  This.properties.global.validRedirectHosts = configuration.global.validRedirectHosts;
635
651
  This.properties.meta.environment = utilities.get(configuration, 'global.settings.debug.environment', This.properties.meta.environment);
636
652
  This.properties.page.queryString = new URLSearchParams(window.location.search);
@@ -1427,7 +1443,11 @@ function Manager() {
1427
1443
 
1428
1444
  var load_chatsy = function(This, options) {
1429
1445
  return new Promise(function(resolve, reject) {
1430
- if (options.libraries.chatsy.enabled === true) {
1446
+
1447
+ if (
1448
+ options.libraries.chatsy.enabled === true
1449
+ && !This.properties.page._chatsyRequested
1450
+ ) {
1431
1451
  var chatsyPath = 'libraries.chatsy.config';
1432
1452
 
1433
1453
  loadScript({
@@ -1455,6 +1475,7 @@ function Manager() {
1455
1475
  resolve();
1456
1476
  })
1457
1477
 
1478
+ This.properties.page._chatsyRequested = true;
1458
1479
  } else {
1459
1480
  resolve();
1460
1481
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "web-manager",
3
- "version": "3.1.37",
3
+ "version": "3.1.39",
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": {