From d69d3d41c9965d984970531a6ff8ac20e86f0a4d Mon Sep 17 00:00:00 2001
From: Martijn Cuppens <github@martijncuppens.be>
Date: Mon, 6 Nov 2023 10:11:52 +0100
Subject: [PATCH] Remove console logs

Remove console logs & commented logs
---
 assets/js/controllers.js | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)

diff --git a/assets/js/controllers.js b/assets/js/controllers.js
index 846c413..7ac06ec 100644
--- a/assets/js/controllers.js
+++ b/assets/js/controllers.js
@@ -211,7 +211,6 @@ mailhogApp.controller('MailCtrl', function ($scope, $http, $sce, $timeout) {
 
   $scope.startEvent = function(name, args, glyphicon) {
     var eID = guid();
-    //console.log("Starting event '" + name + "' with id '" + eID + "'")
     var e = {
       id: eID,
       name: name,
@@ -235,10 +234,7 @@ mailhogApp.controller('MailCtrl', function ($scope, $http, $sce, $timeout) {
         var e = this;
         e.complete = true;
         $scope.eventDone++;
-        if(this.failed) {
-          // console.log("Failed event '" + e.name + "' with id '" + eID + "'")
-        } else {
-          // console.log("Completed event '" + e.name + "' with id '" + eID + "'")
+        if(!this.failed) {
           $timeout(function() {
             e.remove();
           }, 10000);
@@ -250,7 +246,6 @@ mailhogApp.controller('MailCtrl', function ($scope, $http, $sce, $timeout) {
         this.done();
       },
       remove: function() {
-        // console.log("Deleted event '" + e.name + "' with id '" + eID + "'")
         if(e.failed) {
           $scope.eventFailed--;
         }
@@ -367,7 +362,6 @@ mailhogApp.controller('MailCtrl', function ($scope, $http, $sce, $timeout) {
             }
           }
         }
-        console.log(data.$cidMap)
         // TODO
         // - scan HTML parts for elements containing CID URI and replace
 
@@ -504,7 +498,6 @@ mailhogApp.controller('MailCtrl', function ($scope, $http, $sce, $timeout) {
     return false;
   }
   $scope.getMessageHTML = function(message) {
-    console.log(message);
     for(var header in message.Content.Headers) {
       if(header.toLowerCase() == 'content-type') {
         if(message.Content.Headers[header][0].match("text/html")) {