mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +02:00
Disable Chrome extension for non-GET requests
This commit is contained in:
parent
c682c25bcf
commit
f67a66c108
1 changed files with 4 additions and 0 deletions
|
@ -147,6 +147,10 @@ function getHeadersWithContentDispositionAttachment(details) {
|
|||
|
||||
chrome.webRequest.onHeadersReceived.addListener(
|
||||
function(details) {
|
||||
if (details.method !== 'GET') {
|
||||
// Don't intercept POST requests until http://crbug.com/104058 is fixed.
|
||||
return;
|
||||
}
|
||||
if (!isPdfFile(details))
|
||||
return;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue