change method of writing filter content to disk

Overwrite instead of merging
This commit is contained in:
buzz-lightsnack-2007 2024-06-08 17:48:21 +08:00
parent fffef232c0
commit ed47e40bd1

View file

@ -94,7 +94,7 @@ export default class FilterManager {
// Only work when the filter is valid.
if (result) {
// Write the filter to storage.
if (!(await global.write(["filters", filter_URL], result, -1, {"silent": true}))) {
if (!(await global.write(["filters", filter_URL], result, -1, {"silent": true, "strict": true}))) {
throw ReferenceError;
};