aboutsummaryrefslogtreecommitdiff
path: root/background/patterns_query_manager.js
diff options
context:
space:
mode:
Diffstat (limited to 'background/patterns_query_manager.js')
-rw-r--r--background/patterns_query_manager.js6
1 files changed, 1 insertions, 5 deletions
diff --git a/background/patterns_query_manager.js b/background/patterns_query_manager.js
index 3e2953f..d3c659a 100644
--- a/background/patterns_query_manager.js
+++ b/background/patterns_query_manager.js
@@ -4,7 +4,7 @@
* Function: Instantiate the Pattern Tree data structure, filled with mappings
* from IndexedDB.
*
- * Copyright (C) 2021,2022 Wojtek Kosior
+ * Copyright (C) 2021, 2022 Wojtek Kosior
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -110,10 +110,8 @@ function register(kind, object) {
pqt.register(tree, object.pattern, "~allow", object.allow + 0);
}
-#IF MOZILLA || MV3
const id = kind === "mappings" ? object.identifier : object.pattern;
currently_registered.set(id, object);
-#ENDIF
}
function changed(kind, change) {
@@ -126,9 +124,7 @@ function changed(kind, change) {
pqt.deregister(tree, change.key, "~allow");
}
-#IF MOZILLA || MV3
currently_registered.delete(change.key);
-#ENDIF
}
if (change.new_val !== undefined)