allow synchronizing the downloaded filters
This commit is contained in:
parent
72742a1103
commit
749fb12698
1 changed files with 5 additions and 0 deletions
|
@ -116,6 +116,11 @@ export default class filters {
|
||||||
// Write the filter to storage.
|
// Write the filter to storage.
|
||||||
secretariat.write(["filters", filter_URL], result, -1);
|
secretariat.write(["filters", filter_URL], result, -1);
|
||||||
alerts.log(texts.localized(`settings_filters_update_status_complete`,null,[filter_URL]));
|
alerts.log(texts.localized(`settings_filters_update_status_complete`,null,[filter_URL]));
|
||||||
|
|
||||||
|
// Add the filter to the sync list.
|
||||||
|
if (secretariat.read(["settings", `filters`, filter_URL], 1) == null) {
|
||||||
|
secretariat.write(["settings", `filters`, filter_URL], true, 1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue