mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-01-19 05:09:22 +08:00
Removed unused detectDomBackgroundColor
This commit is contained in:
parent
424167d43f
commit
5e0f637b12
1 changed files with 1 additions and 15 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue