We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 51dc772 + 6904eae commit bfba9cfCopy full SHA for bfba9cf
src/js/background/historyManager.ts
@@ -67,14 +67,19 @@ export async function upsertInvalidRecord(
67
const tabIDKey = String(tabID);
68
const entry = await chrome.storage.local.get(tabIDKey);
69
70
+ const violations = TAB_TO_VIOLATING_SRCS.get(tabID) ?? new Set();
71
+
72
if (Object.keys(entry).length !== 0) {
73
creationTime = entry[tabIDKey].creationTime;
74
+ entry[tabIDKey].violations.forEach((violation: Violation) => {
75
+ violations.add(violation);
76
+ });
77
}
78
79
return chrome.storage.local.set({
80
[tabIDKey]: {
81
creationTime,
- violations: Array.from(TAB_TO_VIOLATING_SRCS.get(tabID) ?? new Set()),
82
+ violations: Array.from(violations),
83
url: tab.url,
84
},
85
});
0 commit comments