web-manager 3.1.41 → 3.1.43

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 +12 -6
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -587,7 +587,7 @@ function Manager() {
587
587
  settings: {
588
588
  openChatButton: {
589
589
  background: '#237afc',
590
- text: '#ffffff',
590
+ text: '#fff',
591
591
  },
592
592
  },
593
593
  },
@@ -598,7 +598,7 @@ function Manager() {
598
598
  palette: {
599
599
  popup: {
600
600
  background: '#237afc',
601
- text: '#ffffff',
601
+ text: '#fff',
602
602
  },
603
603
  button: {
604
604
  background: '#fff',
@@ -716,16 +716,22 @@ function Manager() {
716
716
 
717
717
  var chatsyOps = options_user.libraries.chatsy;
718
718
  if (chatsyOps.enabled) {
719
- var preChatBtn = select('#prechat-btn');
719
+ var $preChatBtn = select('#prechat-btn');
720
+ var $preChatBtnSvg = select('#prechat-btn svg path');
721
+ var openChatButtonSettings = chatsyOps.config.settings.openChatButton;
720
722
 
721
- preChatBtn.css({
722
- background: chatsyOps.config.settings.openChatButton.background,
723
+ $preChatBtn.css({
724
+ background: openChatButtonSettings.background,
723
725
  })
724
726
  .show();
725
727
 
728
+ $preChatBtnSvg.each(function ($el) {
729
+ $el.setAttribute('fill', openChatButtonSettings.text)
730
+ })
731
+
726
732
  window.chatsy = {};
727
733
  window.chatsy.open = function() {
728
- preChatBtn.get(0).click();
734
+ $preChatBtn.get(0).click();
729
735
  }
730
736
  }
731
737
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "web-manager",
3
- "version": "3.1.41",
3
+ "version": "3.1.43",
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": {