mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-02 22:17:03 +03:00
Move SettingsUserStore.removeColors() to cleanHtml()
This commit is contained in:
parent
33b228a86f
commit
5c43378d71
2 changed files with 6 additions and 6 deletions
|
|
@ -1,5 +1,6 @@
|
|||
import { createElement } from 'Common/Globals';
|
||||
import { forEachObjectEntry, pInt } from 'Common/Utils';
|
||||
import { SettingsUserStore } from 'Stores/User/Settings';
|
||||
|
||||
const
|
||||
tpl = createElement('template'),
|
||||
|
|
@ -36,7 +37,7 @@ export const
|
|||
* @param {string} text
|
||||
* @returns {string}
|
||||
*/
|
||||
cleanHtml = (html, oAttachments, removeColors) => {
|
||||
cleanHtml = (html, oAttachments) => {
|
||||
const
|
||||
debug = false, // Config()->Get('debug', 'enable', false);
|
||||
detectHiddenImages = true, // !!SettingsGet('try_to_detect_hidden_images'),
|
||||
|
|
@ -354,7 +355,7 @@ export const
|
|||
// Removes background and color
|
||||
// Many e-mails incorrectly only define one, not both
|
||||
// And in dark theme mode this kills the readability
|
||||
if (removeColors) {
|
||||
if (SettingsUserStore.removeColors()) {
|
||||
oStyle.removeProperty('background-color');
|
||||
oStyle.removeProperty('background-image');
|
||||
oStyle.removeProperty('color');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue