silence save notifications when updating the filters

This commit is contained in:
buzz-lightsnack-2007 2024-04-28 13:12:07 +08:00
parent 43322a8208
commit 7c122003a0

View file

@ -87,8 +87,8 @@ export default class filters {
// Only work when the filter is valid. // Only work when the filter is valid.
if (result) { if (result) {
// Write the filter to storage. // Write the filter to storage.
await write(["filters", filter_URL], result, -1); await write(["filters", filter_URL], result, -1, {"silent": true});
logging.log(texts.localized(`settings_filters_update_status_complete`,null,[filter_URL])); new logging(texts.localized(`settings_filters_update_status_complete`,null,[filter_URL]));
// Add the filter to the sync list. // Add the filter to the sync list.
if ((await read(["settings", `filters`])) ? !((Object.keys(await read(["settings", `filters`]))).includes(filter_URL)) : true) { if ((await read(["settings", `filters`])) ? !((Object.keys(await read(["settings", `filters`]))).includes(filter_URL)) : true) {