Skip to content

Commit 441c57e

Browse files
Ghosytimss
authored andcommitted
Fix #666: Remove deprecated canClear function (#691)
1 parent 0698792 commit 441c57e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

common/content/sanitizer.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const Sanitizer = Module("sanitizer", {
4343
for (let itemName in this.items) {
4444
let item = this.items[itemName];
4545

46-
if ("clear" in item && item.canClear && prefSet(itemName)) {
46+
if ("clear" in item && prefSet(itemName)) {
4747
liberator.echomsg("Sanitizing " + itemName + " items...");
4848
// Some of these clear() may raise exceptions (see bug #265028)
4949
// to sanitize as much as possible, we catch and store them,
@@ -176,7 +176,6 @@ const Sanitizer = Module("sanitizer", {
176176
options.setPref(pref, false);
177177

178178
self.items[item.name] = {
179-
canClear: true,
180179
clear: item.action
181180
};
182181
});

0 commit comments

Comments
 (0)