aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgorhill <rhill@raymondhill.net>2015-06-18 17:23:52 -0400
committergorhill <rhill@raymondhill.net>2015-06-18 17:23:52 -0400
commit131e93770f4ed04a9c659c2ffd9eaea28ac61f44 (patch)
treefc7327f52995f54dfc0f3a919a128999cc3fad32
parentfb25df9f0549b65ccaeae9f4b6f0c0289bce7d97 (diff)
downloaduBlock-131e93770f4ed04a9c659c2ffd9eaea28ac61f44.zip
uBlock-131e93770f4ed04a9c659c2ffd9eaea28ac61f44.tar.gz
uBlock-131e93770f4ed04a9c659c2ffd9eaea28ac61f44.tar.bz2
this addresses wrong filter type in #370
-rw-r--r--src/js/logger-ui.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/js/logger-ui.js b/src/js/logger-ui.js
index 8309097..77a9574 100644
--- a/src/js/logger-ui.js
+++ b/src/js/logger-ui.js
@@ -68,6 +68,13 @@ var uglyRequestTypes = {
'xhr': 'xmlhttprequest'
};
+var staticFilterTypes = {
+ 'doc': 'other',
+ 'css': 'stylesheet',
+ 'frame': 'subdocument',
+ 'xhr': 'xmlhttprequest'
+};
+
var timeOptions = {
hour: '2-digit',
minute: '2-digit',
@@ -781,6 +788,9 @@ var netFilteringManager = (function() {
var uglyTypeFromSelector = function(pane) {
var prettyType = selectValue('select.type.' + pane);
+ if ( pane === 'static' ) {
+ return staticFilterTypes[prettyType] || prettyType;
+ }
return uglyRequestTypes[prettyType] || prettyType;
};