Removed unused detectDomBackgroundColor

This commit is contained in:
djmaze 2021-03-12 11:57:07 +01:00
parent 424167d43f
commit 5e0f637b12

View file

@ -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();