mirror of
https://github.com/gorhill/uBlock.git
synced 2024-09-15 15:32:28 +02:00
Minor fine tuning
This commit is contained in:
parent
fd9bb02aab
commit
a9c7369340
@ -110,16 +110,11 @@ async function fetchResource(url) {
|
|||||||
let mime = response && response.headers.get('Content-Type') || '';
|
let mime = response && response.headers.get('Content-Type') || '';
|
||||||
mime = mime.replace(/\s*;.*$/, '').trim();
|
mime = mime.replace(/\s*;.*$/, '').trim();
|
||||||
const beautifierOptions = {
|
const beautifierOptions = {
|
||||||
'end_with_newline': true,
|
end_with_newline: true,
|
||||||
'indent_size': 2,
|
indent_size: 3,
|
||||||
'html': {
|
js: {
|
||||||
'js': {
|
max_preserve_newlines: 3,
|
||||||
'indent_size': 4,
|
}
|
||||||
},
|
|
||||||
},
|
|
||||||
'js': {
|
|
||||||
'indent_size': 4,
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
switch ( mime ) {
|
switch ( mime ) {
|
||||||
case 'text/css':
|
case 'text/css':
|
||||||
|
Loading…
Reference in New Issue
Block a user