Skip to content

Commit

Permalink
fix traffic.js
Browse files Browse the repository at this point in the history
  • Loading branch information
cqx931 committed Aug 22, 2018
1 parent ffebeee commit 466e7e8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/js/traffic.js
Original file line number Diff line number Diff line change
Expand Up @@ -670,8 +670,8 @@ onBeforeMaybeSpuriousCSPReport.textDecoder = undefined;

var onHeadersReceived = function(details) {
// Do not interfere with behind-the-scene requests.
var ad, dbug = 0; //ADN
var ad, result, dbug = 0; //ADN

var tabId = details.tabId,
µb = µBlock,
requestType = details.type,
Expand Down Expand Up @@ -722,7 +722,8 @@ var onHeadersReceived = function(details) {
if ( pageStore.getNetFilteringSwitch() === false ) { return; }

if ( requestType === 'image' || requestType === 'media' ) {
return foilLargeMediaElement(pageStore, details);
result = foilLargeMediaElement(pageStore, details);
return result
}

if ( isDoc && µb.canFilterResponseBody ) {
Expand Down

0 comments on commit 466e7e8

Please sign in to comment.