mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-10 17:17:57 +01:00
forgot to document fix in code re. #111
This commit is contained in:
parent
0513c4fd27
commit
ada732575a
1 changed files with 5 additions and 1 deletions
|
@ -352,7 +352,11 @@ var onRootFrameHeadersReceived = function(details) {
|
|||
var µb = µBlock;
|
||||
|
||||
// Check if the main_frame is a download
|
||||
// ...
|
||||
// https://github.com/gorhill/uBlock/issues/111
|
||||
// We will assume that whatever root document is of type
|
||||
// 'application/x-[...]' is a download operation.
|
||||
// I confirmed this also work with original issue:
|
||||
// https://github.com/chrisaljoudi/uBlock/issues/516
|
||||
if ( headerValue(details.responseHeaders, 'content-type').lastIndexOf('application/x-', 0) === 0 ) {
|
||||
µb.tabContextManager.unpush(tabId, details.url);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue