web-manager 3.1.42 → 3.1.44
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +3 -3
- package/lib/account.js +7 -3
- package/package.json +2 -2
package/index.js
CHANGED
@@ -718,15 +718,15 @@ function Manager() {
|
|
718
718
|
if (chatsyOps.enabled) {
|
719
719
|
var $preChatBtn = select('#prechat-btn');
|
720
720
|
var $preChatBtnSvg = select('#prechat-btn svg path');
|
721
|
-
var
|
721
|
+
var openChatButtonSettings = chatsyOps.config.settings.openChatButton;
|
722
722
|
|
723
723
|
$preChatBtn.css({
|
724
|
-
background:
|
724
|
+
background: openChatButtonSettings.background,
|
725
725
|
})
|
726
726
|
.show();
|
727
727
|
|
728
728
|
$preChatBtnSvg.each(function ($el) {
|
729
|
-
$el.setAttribute('fill',
|
729
|
+
$el.setAttribute('fill', openChatButtonSettings.text)
|
730
730
|
})
|
731
731
|
|
732
732
|
window.chatsy = {};
|
package/lib/account.js
CHANGED
@@ -334,12 +334,16 @@ Account.prototype._resolveAccount = function (firebaseUser, account, options) {
|
|
334
334
|
account.activity.geolocation.ip = account.activity.geolocation.ip || 'unknown';
|
335
335
|
account.activity.geolocation.continent = account.activity.geolocation.continent || 'unknown';
|
336
336
|
account.activity.geolocation.country = account.activity.geolocation.country || 'unknown';
|
337
|
+
account.activity.geolocation.region = account.activity.geolocation.region || 'unknown';
|
337
338
|
account.activity.geolocation.city = account.activity.geolocation.city || 'unknown';
|
338
339
|
account.activity.geolocation.latitude = account.activity.geolocation.latitude || 'unknown';
|
339
340
|
account.activity.geolocation.longitude = account.activity.geolocation.longitude || 'unknown';
|
340
|
-
|
341
|
-
account.activity.
|
342
|
-
account.activity.
|
341
|
+
|
342
|
+
account.activity.client = account.activity.client || {};
|
343
|
+
account.activity.client.userAgent = account.activity.client.userAgent || 'unknown';
|
344
|
+
account.activity.client.language = account.activity.client.language || 'unknown';
|
345
|
+
account.activity.client.platform = account.activity.client.platform || 'unknown';
|
346
|
+
account.activity.client.mobile = account.activity.client.mobile || 'unknown';
|
343
347
|
|
344
348
|
// Api
|
345
349
|
account.api = account.api || {};
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "web-manager",
|
3
|
-
"version": "3.1.
|
3
|
+
"version": "3.1.44",
|
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
|
+
}
|