make sure the filter itself is saved before proceeding

This commit is contained in:
buzz-lightsnack-2007 2024-04-16 23:52:31 +08:00
parent 098fcb2d51
commit 563803e041

View file

@ -79,7 +79,7 @@ export default class filters {
// Only work when the filter is valid.
if (result) {
// Write the filter to storage.
write(["filters", filter_URL], result, -1);
await write(["filters", filter_URL], result, -1);
logging.log(texts.localized(`settings_filters_update_status_complete`,null,[filter_URL]));
// Add the filter to the sync list.