Email not required at browser

This commit is contained in:
Luis Fernando Molina committed 2018-09-18 21:27:33 +02:00
1 parent dca4a222c5
commit 7fca69c5cc
1 file changed
+9
+9
View File
@@ -1394,6 +1394,15 @@
function sendEmail(pTitle, pBody, pTo) {
try {
/**
Email configuration is not available when running the bot on the browser.
*/
if (global.CURRENT_EXECUTION_AT === "Browser") {
logger.write(MODULE_NAME, "[WARN] sendEmail -> Send emails is disabled from the browser.");
return;
}
let emailList = pTo; //TODO Pending to add spam controller
let runIndex = context.statusReport.runs.length - 1;