mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-07 00:17:03 +03: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
|
{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() {
|
toggleFullScreen() {
|
||||||
try {
|
try {
|
||||||
getSelection().removeAllRanges();
|
getSelection().removeAllRanges();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue