web-manager 3.1.36 → 3.1.38
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.
- package/index.js +29 -8
- package/package.json +1 -1
package/index.js
CHANGED
@@ -93,6 +93,24 @@ function Manager() {
|
|
93
93
|
brand: {
|
94
94
|
name: 'default'
|
95
95
|
},
|
96
|
+
contact: {
|
97
|
+
emailSupport: '',
|
98
|
+
emailBusiness: '',
|
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
|
+
},
|
113
|
+
validRedirectHosts: [],
|
96
114
|
// preferences: {
|
97
115
|
// // firebase: {
|
98
116
|
// // enabled: false
|
@@ -623,15 +641,14 @@ function Manager() {
|
|
623
641
|
This.properties.global.version = configuration.global.version;
|
624
642
|
This.properties.global.url = configuration.global.url;
|
625
643
|
This.properties.global.cacheBreaker = configuration.global.cacheBreaker;
|
626
|
-
|
627
|
-
This.properties.
|
628
|
-
|
629
|
-
|
630
|
-
|
631
|
-
// : This.properties.global.cacheBreaker;
|
632
|
-
// This.log('Config: ', options_user);
|
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;
|
633
649
|
|
634
|
-
|
650
|
+
This.properties.global.validRedirectHosts = configuration.global.validRedirectHosts;
|
651
|
+
This.properties.meta.environment = utilities.get(configuration, 'global.settings.debug.environment', This.properties.meta.environment);
|
635
652
|
This.properties.page.queryString = new URLSearchParams(window.location.search);
|
636
653
|
var pageQueryString = This.properties.page.queryString
|
637
654
|
var pagePathname = window.location.pathname;
|
@@ -1643,10 +1660,14 @@ function Manager() {
|
|
1643
1660
|
}
|
1644
1661
|
|
1645
1662
|
Manager.prototype.isValidRedirectUrl = function (url) {
|
1663
|
+
var self = this;
|
1664
|
+
|
1646
1665
|
var returnUrlObject = new URL(decodeURIComponent(url));
|
1647
1666
|
var currentUrlObject = new URL(window.location.href);
|
1667
|
+
|
1648
1668
|
return returnUrlObject.host === currentUrlObject.host
|
1649
1669
|
|| returnUrlObject.protocol === this.properties.global.app + ':'
|
1670
|
+
|| self.properties.global.validRedirectHosts.includes(returnUrlObject.host)
|
1650
1671
|
}
|
1651
1672
|
|
1652
1673
|
// Manager.prototype.performance = function() {
|
package/package.json
CHANGED