Revision 03d041ce
Added by koszko about 2 years ago
background/main.js | ||
---|---|---|
57 | 57 |
return; |
58 | 58 |
|
59 | 59 |
const [pattern, settings] = query_best(storage, details.url); |
60 |
const allow = !!(settings && settings.allow); |
|
60 |
const has_payload = !!(settings && settings.components); |
|
61 |
const allow = !has_payload && !!(settings && settings.allow); |
|
61 | 62 |
const nonce = gen_nonce(); |
62 |
const policy = {allow, url, nonce}; |
|
63 |
const policy = {allow, url, nonce, has_payload};
|
|
63 | 64 |
|
64 | 65 |
let headers = details.responseHeaders; |
65 | 66 |
let skip = false; |
Also available in: Unified diff
only apply stream filter modifications when reasonably necessary