mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-02-24 06:47:05 +08: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…
Reference in a new issue