From 5e0f637b12cc836bb7771f7e6bb2a5831003859f Mon Sep 17 00:00:00 2001 From: djmaze Date: Fri, 12 Mar 2021 11:57:07 +0100 Subject: [PATCH] Removed unused detectDomBackgroundColor --- dev/View/User/MailBox/MessageView.js | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/dev/View/User/MailBox/MessageView.js b/dev/View/User/MailBox/MessageView.js index 363be6b30..fa4b7c93d 100644 --- a/dev/View/User/MailBox/MessageView.js +++ b/dev/View/User/MailBox/MessageView.js @@ -294,21 +294,7 @@ class MessageViewMailBoxUserView extends AbstractViewRight { {detail:SettingsUserStore.usePreviewPane() || !!this.message()} // bForceSelect )); } -/* - detectDomBackgroundColor(dom) { - let color = ''; - if (dom && !SettingsUserStore.removeColors()) { - dom.querySelectorAll('div[data-x-div-type="html"], div[data-x-div-type="body"]').forEach(node => { - let clr = node.style.backgroundColor || ''; - // is transparent ? - if ('transparent' !== clr && !/(rgba|hsla)\(.+,\s*0\s*\)/.test(clr)) { - color = clr; - } - }); - } - return color; - } -*/ + toggleFullScreen() { try { getSelection().removeAllRanges();