mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-29 20:19:22 +03:00
Bugfix: Setting change "background color" checkbox error "MessageUserStore.messagesBodiesDom() is null"
This commit is contained in:
parent
4ca29a2e8f
commit
e93dc9201d
1 changed files with 4 additions and 1 deletions
|
|
@ -114,7 +114,10 @@ export class GeneralUserSettings {
|
|||
showImages: value => Remote.saveSetting('ShowImages', value ? 1 : 0),
|
||||
|
||||
removeColors: value => {
|
||||
MessageUserStore.messagesBodiesDom().innerHTML = '';
|
||||
let dom = MessageUserStore.messagesBodiesDom();
|
||||
if (dom) {
|
||||
dom.innerHTML = '';
|
||||
}
|
||||
Remote.saveSetting('RemoveColors', value ? 1 : 0);
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue