aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorgorhill <rhill@raymondhill.net>2015-04-24 07:12:12 -0400
committergorhill <rhill@raymondhill.net>2015-04-24 07:12:12 -0400
commit0513c4fd27227f4dc511fa022de53f7fe5c2dd53 (patch)
treee0a325f62221d4756363a550084d3abf09241cae /src
parent5fbbec6f85e6643225fe41c553701f1e23d839a6 (diff)
downloaduBlock-0513c4fd27227f4dc511fa022de53f7fe5c2dd53.zip
uBlock-0513c4fd27227f4dc511fa022de53f7fe5c2dd53.tar.gz
uBlock-0513c4fd27227f4dc511fa022de53f7fe5c2dd53.tar.bz2
this fixes #111
Diffstat (limited to 'src')
-rw-r--r--src/js/traffic.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/js/traffic.js b/src/js/traffic.js
index f49222d..f854e6b 100644
--- a/src/js/traffic.js
+++ b/src/js/traffic.js
@@ -353,7 +353,7 @@ var onRootFrameHeadersReceived = function(details) {
// Check if the main_frame is a download
// ...
- if ( headerValue(details.responseHeaders, 'content-disposition').lastIndexOf('attachment', 0) === 0 ) {
+ if ( headerValue(details.responseHeaders, 'content-type').lastIndexOf('application/x-', 0) === 0 ) {
µb.tabContextManager.unpush(tabId, details.url);
}