this addresses wrong filter type in #370

This commit is contained in:
gorhill 2015-06-18 17:23:52 -04:00
parent fb25df9f05
commit 131e93770f
1 changed files with 10 additions and 0 deletions

View File

@ -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;
};