Skip to content

Commit b862b73

Browse files
committed
Categorize .svg resources as image type
Related issue: uBlockOrigin/uBlock-issues#3964 In Chromium-based browsers, downloaded resources are typically categorized as `other` hence uBO attempts to re-categorize with more specific types: `.svg` resources will now be categorized as `image` instead of `font`.
1 parent 758582a commit b862b73

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

platform/chromium/vapi-background-ext.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,9 @@ vAPI.Tabs = class extends vAPI.Tabs {
8282

8383
{
8484
const extToTypeMap = new Map([
85-
['eot','font'],['otf','font'],['svg','font'],['ttf','font'],['woff','font'],['woff2','font'],
85+
['eot','font'],['otf','font'],['ttf','font'],['woff','font'],['woff2','font'],
8686
['mp3','media'],['mp4','media'],['webm','media'],
87-
['gif','image'],['ico','image'],['jpeg','image'],['jpg','image'],['png','image'],['webp','image']
87+
['gif','image'],['ico','image'],['jpeg','image'],['jpg','image'],['png','image'],['svg','image'],['webp','image']
8888
]);
8989

9090
const parsedURL = new URL('https://www.example.org/');

0 commit comments

Comments
 (0)