Merge pull request #2450 from Safelite/feature/CASH-188
CASH-188 | Adding debug help
This commit is contained in:
commit
776822a0cc
2 changed files with 9 additions and 0 deletions
|
|
@ -52,6 +52,7 @@ export function initializeSalesforceWebchatForQa() {
|
||||||
};
|
};
|
||||||
|
|
||||||
if (!window.embedded_svc) {
|
if (!window.embedded_svc) {
|
||||||
|
console.log("no embedded svc found");
|
||||||
var s = document.createElement("script");
|
var s = document.createElement("script");
|
||||||
s.setAttribute(
|
s.setAttribute(
|
||||||
"src",
|
"src",
|
||||||
|
|
@ -62,6 +63,7 @@ export function initializeSalesforceWebchatForQa() {
|
||||||
};
|
};
|
||||||
document.body.appendChild(s);
|
document.body.appendChild(s);
|
||||||
} else {
|
} else {
|
||||||
|
console.log("embedded svc found");
|
||||||
initESW("https://service.force.com");
|
initESW("https://service.force.com");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -28,16 +28,23 @@ export default {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
initializeSalesforceWebchat() {
|
initializeSalesforceWebchat() {
|
||||||
|
console.log(
|
||||||
|
"process.env.VUE_APP_CURRENT_ENVIRONMENT",
|
||||||
|
process.env.VUE_APP_CURRENT_ENVIRONMENT
|
||||||
|
);
|
||||||
switch (process.env.VUE_APP_CURRENT_ENVIRONMENT) {
|
switch (process.env.VUE_APP_CURRENT_ENVIRONMENT) {
|
||||||
case "Prod":
|
case "Prod":
|
||||||
|
console.log("Prod");
|
||||||
initializeSalesforceWebchatForProd();
|
initializeSalesforceWebchatForProd();
|
||||||
break;
|
break;
|
||||||
case "QA":
|
case "QA":
|
||||||
case "SysTest":
|
case "SysTest":
|
||||||
|
console.log("QA");
|
||||||
initializeSalesforceWebchatForQa();
|
initializeSalesforceWebchatForQa();
|
||||||
break;
|
break;
|
||||||
case "Dev":
|
case "Dev":
|
||||||
case "Localhost":
|
case "Localhost":
|
||||||
|
console.log("Dev");
|
||||||
initializeSalesforceWebchatForDev();
|
initializeSalesforceWebchatForDev();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue