mirror of https://github.com/gorhill/uBlock.git
this addresses wrong filter type in #370
This commit is contained in:
parent
fb25df9f05
commit
131e93770f
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue