We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d93c879 commit 82bed35Copy full SHA for 82bed35
src/bg/RequestGuard.js
@@ -263,8 +263,9 @@ var RequestGuard = (() => {
263
let policyType = policyTypesMap[request.type];
264
if (policyType) {
265
let {url, originUrl, documentUrl} = request;
266
- if (("fetch" === policyType || "frame" === policyType) &&
267
- (((!originUrl || url === originUrl) && originUrl === documentUrl
+ let isFetch = "fetch" === policyType;
+ if ((isFetch || "frame" === policyType) &&
268
+ (((isFetch && !originUrl || url === originUrl) && originUrl === documentUrl
269
// some extensions make them both undefined,
270
// see https://github.com/eight04/image-picka/issues/150
271
) ||
0 commit comments