diff --git a/webext/background.js b/webext/background.js index 5138929..4167359 100644 --- a/webext/background.js +++ b/webext/background.js @@ -143,9 +143,9 @@ SysTrayX.Messaging = { SysTrayX.Messaging.newMailCache.push({ folder, messages }); } - console.debug("listenerNewMailCache: New mail in: " + JSON.stringify(folder)); - console.debug("listenerNewMailCache: New messages: " + JSON.stringify(messages)); - console.debug("listenerNewMailCache: Cache: " + SysTrayX.Messaging.newMailCache.length ); + //console.debug("listenerNewMailCache: New mail in: " + JSON.stringify(folder)); + //console.debug("listenerNewMailCache: New messages: " + JSON.stringify(messages)); + //console.debug("listenerNewMailCache: Cache: " + SysTrayX.Messaging.newMailCache.length ); if (SysTrayX.Messaging.startupDelayFinished) { @@ -182,9 +182,9 @@ SysTrayX.Messaging = { SysTrayX.Messaging.folderInfoChangeCache.push({ folder, folderInfo }); } - console.debug("folderInfoChanged: " + JSON.stringify(folder)); - console.debug("folderInfoChanged: " + JSON.stringify(folderInfo)); - console.debug("folderInfoChanged: Cache: " + SysTrayX.Messaging.folderInfoChangeCache.length ); + //console.debug("folderInfoChanged: " + JSON.stringify(folder)); + //console.debug("folderInfoChanged: " + JSON.stringify(folderInfo)); + //console.debug("folderInfoChanged: Cache: " + SysTrayX.Messaging.folderInfoChangeCache.length ); if (SysTrayX.Messaging.startupDelayFinished) { @@ -225,9 +225,9 @@ SysTrayX.Messaging = { } } - console.debug("FolderInfoChanged: Clear"); - console.debug("FolderInfoChanged: Old: " + JSON.stringify(SysTrayX.Messaging.new[cache.folder.accountId][cache.folder.path])); - console.debug("FolderInfoChanged: New: " + JSON.stringify(newMessages)); + //console.debug("FolderInfoChanged: Clear"); + //console.debug("FolderInfoChanged: Old: " + JSON.stringify(SysTrayX.Messaging.new[cache.folder.accountId][cache.folder.path])); + //console.debug("FolderInfoChanged: New: " + JSON.stringify(newMessages)); SysTrayX.Messaging.new[cache.folder.accountId][cache.folder.path] = [ ...newMessages, @@ -652,7 +652,7 @@ SysTrayX.Link = { postSysTrayXMessage: function (object) { // Send object (will be stringified by postMessage) - // console.debug("postSysTrayXMessage: " + JSON.stringify(object)); + //console.debug("postSysTrayXMessage: " + JSON.stringify(object)); SysTrayX.Link.portSysTrayX.postMessage(object); }, @@ -889,10 +889,8 @@ SysTrayX.Window = { folderChanged: function (tab, displayedFolder) { - console.debug("Folder changed tab: " + JSON.stringify(tab)); - console.debug( - "Folder changed displayedFolder: " + JSON.stringify(displayedFolder) - ); + //console.debug("Folder changed tab: " + JSON.stringify(tab)); + //console.debug("Folder changed displayedFolder: " + JSON.stringify(displayedFolder)); if (SysTrayX.Info.browserInfo.majorVersion < 115) { const oldDisplayedFolder = SysTrayX.Messaging.displayedFolder; diff --git a/webext/js/defaults.js b/webext/js/defaults.js index 316a16d..109e8eb 100644 --- a/webext/js/defaults.js +++ b/webext/js/defaults.js @@ -438,8 +438,8 @@ const sendMailCountPre115 = () => { //console.debug("Filters: " + JSON.stringify(SysTrayX.Messaging.filters)); //console.debug("New: " + JSON.stringify(SysTrayX.Messaging.new)); - console.debug("sendMailCountPre115 Unread: " + unreadCount); - console.debug("sendMailCountPre115 New: " + newCount); + //console.debug("sendMailCountPre115 Unread: " + unreadCount); + //console.debug("sendMailCountPre115 New: " + newCount); SysTrayX.Link.postSysTrayXMessage( { mailCount: { unread: unreadCount, new: newCount } } ); } @@ -490,8 +490,8 @@ const sendMailCount = async () => { } } - console.debug("sendMailCount Unread: " + unreadCount); - console.debug("sendMailCount New: " + newCount); + //console.debug("sendMailCount Unread: " + unreadCount); + //console.debug("sendMailCount New: " + newCount); SysTrayX.Link.postSysTrayXMessage( { mailCount: { unread: unreadCount, new: newCount } } ); }