mirror of https://github.com/gorhill/uBlock.git
forgot to document fix in code re. #111
This commit is contained in:
parent
0513c4fd27
commit
ada732575a
|
@ -352,7 +352,11 @@ var onRootFrameHeadersReceived = function(details) {
|
||||||
var µb = µBlock;
|
var µb = µBlock;
|
||||||
|
|
||||||
// Check if the main_frame is a download
|
// 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 ) {
|
if ( headerValue(details.responseHeaders, 'content-type').lastIndexOf('application/x-', 0) === 0 ) {
|
||||||
µb.tabContextManager.unpush(tabId, details.url);
|
µb.tabContextManager.unpush(tabId, details.url);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue