Skip to content

Commit 014ce7c

Browse files
Merge pull request #18728 from Rob--W/crx-mv3-fallback-detect-fixup
[CRX] Fix feature detect of DNR responseHeaders option
2 parents bf5c987 + a91ba11 commit 014ce7c

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

extensions/chromium/pdfHandler.js

+8-4
Original file line numberDiff line numberDiff line change
@@ -227,8 +227,10 @@ async function isHeaderConditionSupported() {
227227
addRules: [
228228
{
229229
id: ruleId,
230-
urlFilter: "|does_not_match_anything",
231-
condition: { responseHeaders: [{ header: "whatever" }] },
230+
condition: {
231+
responseHeaders: [{ header: "whatever" }],
232+
urlFilter: "|does_not_match_anything",
233+
},
232234
action: { type: "block" },
233235
},
234236
],
@@ -244,8 +246,10 @@ async function isHeaderConditionSupported() {
244246
addRules: [
245247
{
246248
id: ruleId,
247-
urlFilter: "|does_not_match_anything",
248-
condition: { responseHeaders: [] },
249+
condition: {
250+
responseHeaders: [],
251+
urlFilter: "|does_not_match_anything",
252+
},
249253
action: { type: "block" },
250254
},
251255
],

0 commit comments

Comments
 (0)