return the value when the forget is completed
This commit is contained in:
parent
6dd983fb78
commit
2809a15738
1 changed files with 1 additions and 1 deletions
|
@ -107,7 +107,7 @@ export default class filters {
|
||||||
*/
|
*/
|
||||||
async remove(URL) {
|
async remove(URL) {
|
||||||
if (URL.includes(`://`)) {
|
if (URL.includes(`://`)) {
|
||||||
await forget([`filters`, URL], -1, false) ? await forget([`settings`, `filters`, URL], 1, true) : false;
|
return((await forget([`filters`, URL], -1, false)) ? await forget([`settings`, `filters`, URL], 1, true) : false);
|
||||||
} else {
|
} else {
|
||||||
// Inform the user of the removal being unnecessary.
|
// Inform the user of the removal being unnecessary.
|
||||||
alerts.warn(texts.localized(`settings_filters_removal_stop`));
|
alerts.warn(texts.localized(`settings_filters_removal_stop`));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue