mirror of
https://codeberg.org/yeentown/barkey
synced 2024-11-25 11:45:12 +00:00
Refactor
This commit is contained in:
parent
7a412500e1
commit
0489291815
2 changed files with 2 additions and 2 deletions
|
@ -20,7 +20,7 @@ export default function(me, settings, note) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!isMyNote && note.text && settings.mutedWords.some(q => q.length > 0 && !q.some(word => word == '' || !note.text.includes(word)))) {
|
if (!isMyNote && note.text && settings.mutedWords.some(q => q.length > 0 && !q.some(word => !note.text.includes(word)))) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -72,7 +72,7 @@ export default Vue.extend({
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
save() {
|
save() {
|
||||||
this._mutedWords = this.mutedWords.split('\n').map(line => line.split(' '));
|
this._mutedWords = this.mutedWords.split('\n').map(line => line.split(' ').filter(x => x != ''));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue