1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-09-03 17:49:39 +02:00

Minor fine tuning

This commit is contained in:
Raymond Hill 2023-03-16 14:54:45 -04:00
parent fd9bb02aab
commit a9c7369340
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -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':