web-manager 3.1.17 → 3.1.19

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 +10 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -554,7 +554,12 @@ function Manager() {
554
554
  config: {
555
555
  accountId: '',
556
556
  chatId: '',
557
- options: {},
557
+ settings: {
558
+ openChatButton: {
559
+ background: '#237afc',
560
+ text: '#ffffff',
561
+ }
562
+ },
558
563
  }
559
564
  },
560
565
  cookieconsent: {
@@ -681,7 +686,10 @@ function Manager() {
681
686
 
682
687
  var chatsyOps = options_user.libraries.chatsy;
683
688
  if (chatsyOps.enabled) {
684
- This.dom().select('#prechat-btn').css({background: chatsyOps.config.prechatColor}).show();
689
+ This.dom().select('#prechat-btn').css({
690
+ background: chatsyOps.config.settings.openChatButton.background,
691
+ })
692
+ .show();
685
693
  }
686
694
 
687
695
  // load non-critical libraries
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "web-manager",
3
- "version": "3.1.17",
3
+ "version": "3.1.19",
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": {