Skip to content

Commit 009311c

Browse files
committed
Shortened provider debug names
1 parent fe0ed0f commit 009311c

2 files changed

Lines changed: 21 additions & 1 deletion

File tree

src/main/background.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@
154154
// Check if the URL is malicious.
155155
BrowserProtection.checkIfUrlIsMalicious(tabId, currentUrl, (result, duration) => {
156156
const cacheName = ProtectionResult.CacheOriginNames[result.origin];
157-
const systemName = ProtectionResult.ResultOriginNames[result.origin];
157+
const systemName = ProtectionResult.ShortOriginNames[result.origin];
158158
const resultType = result.result;
159159

160160
// Remove the URL from the system's processing cache on every callback.

src/main/protection/ProtectionResult.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,26 @@ ProtectionResult.ResultOriginNames = {
7070
16: "Control D Security DNS"
7171
};
7272

73+
ProtectionResult.ShortOriginNames = {
74+
0: "Unknown",
75+
1: "SmartScreen",
76+
2: "Symantec",
77+
3: "Emsisoft",
78+
4: "Bitdefender",
79+
5: "Norton",
80+
6: "G DATA",
81+
7: "MalwareURL",
82+
8: "Cloudflare",
83+
9: "Quad9",
84+
10: "DNS0",
85+
11: "CleanBrowsing",
86+
12: "CIRA",
87+
13: "AdGuard",
88+
14: "Switch.ch",
89+
15: "CERT-EE",
90+
16: "Control D"
91+
};
92+
7393
ProtectionResult.CacheOriginNames = {
7494
0: "unknown",
7595
1: "smartScreen",

0 commit comments

Comments
 (0)