1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-11-24 03:12:46 +01:00

Collapse config details by default

This commit is contained in:
Raymond Hill 2021-11-20 09:38:00 -05:00
parent 64cd70664d
commit 5d51d172c4
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -115,7 +115,7 @@ function patchEmptiness(data, prop) {
}
function configToMarkdown(collapse = false) {
const text = cmEditor.getValue();
const text = cmEditor.getValue().trim();
return collapse
? '<details>\n\n```yaml\n' + text + '\n```\n</details>'
: '```yaml\n' + text + '\n```\n';
@ -219,7 +219,7 @@ function reportSpecificFilterIssue(ev) {
githubURL.searchParams.set('title', title);
githubURL.searchParams.set('url_address_of_the_web_page', '`' + reportURL.href + '`');
githubURL.searchParams.set('category', issueType);
githubURL.searchParams.set('configuration', configToMarkdown(false));
githubURL.searchParams.set('configuration', configToMarkdown(true));
vAPI.messaging.send('default', {
what: 'gotoURL',
details: { url: githubURL.href, select: true, index: -1 },