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) {
|
||||
console.log("no embedded svc found");
|
||||
var s = document.createElement("script");
|
||||
s.setAttribute(
|
||||
"src",
|
||||
|
|
@ -62,6 +63,7 @@ export function initializeSalesforceWebchatForQa() {
|
|||
};
|
||||
document.body.appendChild(s);
|
||||
} else {
|
||||
console.log("embedded svc found");
|
||||
initESW("https://service.force.com");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -28,16 +28,23 @@ export default {
|
|||
},
|
||||
methods: {
|
||||
initializeSalesforceWebchat() {
|
||||
console.log(
|
||||
"process.env.VUE_APP_CURRENT_ENVIRONMENT",
|
||||
process.env.VUE_APP_CURRENT_ENVIRONMENT
|
||||
);
|
||||
switch (process.env.VUE_APP_CURRENT_ENVIRONMENT) {
|
||||
case "Prod":
|
||||
console.log("Prod");
|
||||
initializeSalesforceWebchatForProd();
|
||||
break;
|
||||
case "QA":
|
||||
case "SysTest":
|
||||
console.log("QA");
|
||||
initializeSalesforceWebchatForQa();
|
||||
break;
|
||||
case "Dev":
|
||||
case "Localhost":
|
||||
console.log("Dev");
|
||||
initializeSalesforceWebchatForDev();
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue