Drop deleteStyle
This commit is contained in:
parent
0489fb3b2f
commit
f4651da8d8
|
@ -149,18 +149,6 @@ function filterStylesInternal({
|
|||
: filtered;
|
||||
}
|
||||
|
||||
function deleteStyle({id, notify = true}) {
|
||||
id = Number(id);
|
||||
return dbExec('delete', id).then(() => {
|
||||
invalidateCache({deletedId: id});
|
||||
if (notify) {
|
||||
notifyAllTabs({method: 'styleDeleted', id});
|
||||
}
|
||||
return id;
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
function compileExclusionRegexps(exclusions) {
|
||||
exclusions.forEach(exclusion => {
|
||||
if (!cachedStyles.exclusions.get(exclusion)) {
|
||||
|
|
|
@ -303,6 +303,7 @@ const styleManager = (() => {
|
|||
enabled: data.enabled,
|
||||
code
|
||||
};
|
||||
// FIXME: memory leak
|
||||
appliesTo.add(url);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user