Skip to content

Commit

Permalink
Add opt names to include req/res headers in FF
Browse files Browse the repository at this point in the history
  • Loading branch information
cowlicks committed Jul 9, 2019
1 parent 2c58e61 commit 557430a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/js/browser_compat.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ function getOnBeforeRequestOptions({OnBeforeRequestOptions} = shim) {
}

function getOnBeforeSendHeadersOptions({OnBeforeSendHeadersOptions} = shim) {
return ["BLOCKING", "REQUEST_HEADERS", "EXTRA_HEADERS"].map(x => OnBeforeSendHeadersOptions[x]).filter(x => x);
return ["BLOCKING", "REQUEST_HEADERS", "REQUESTHEADERS", "EXTRA_HEADERS"].map(x => OnBeforeSendHeadersOptions[x]).filter(x => x);
}

function getOnHeadersReceivedOptions({OnHeadersReceivedOptions} = shim) {
return ["BLOCKING", "RESPONSE_HEADERS", "EXTRA_HEADERS"].map(x => OnHeadersReceivedOptions[x]).filter(x => x);
return ["BLOCKING", "RESPONSE_HEADERS", "RESPONSEHEADERS", "EXTRA_HEADERS"].map(x => OnHeadersReceivedOptions[x]).filter(x => x);
}

Object.assign(exports, {getOnBeforeRequestOptions, getOnBeforeSendHeadersOptions, getOnHeadersReceivedOptions});
Expand Down

0 comments on commit 557430a

Please sign in to comment.