From 4564e3a9b8d3cb2afb70ebd2161271f6b9b969bc Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Mon, 23 Jan 2023 16:39:46 -0500 Subject: [PATCH] Add redirectable resource noop.css, as suggested Related feedback: - https://github.com/uBlockOrigin/uAssets/issues/16391#issuecomment-1396316194 --- src/js/redirect-engine.js | 1 + src/web_accessible_resources/noop.css | 1 + 2 files changed, 2 insertions(+) create mode 100644 src/web_accessible_resources/noop.css diff --git a/src/js/redirect-engine.js b/src/js/redirect-engine.js index ef3305559..e18ee7521 100644 --- a/src/js/redirect-engine.js +++ b/src/js/redirect-engine.js @@ -33,6 +33,7 @@ import { /******************************************************************************/ const extToMimeMap = new Map([ + [ 'css', 'text/css' ], [ 'gif', 'image/gif' ], [ 'html', 'text/html' ], [ 'js', 'text/javascript' ], diff --git a/src/web_accessible_resources/noop.css b/src/web_accessible_resources/noop.css new file mode 100644 index 000000000..79a9626b5 --- /dev/null +++ b/src/web_accessible_resources/noop.css @@ -0,0 +1 @@ +/* */