Merge pull request #3927 from tridactyl/fix_issue_filler

Fix #3899: remove duplicate fields
This commit is contained in:
Oliver Blanthorn 2022-05-24 16:11:55 +01:00 committed by GitHub
commit 190f003e32
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5711,15 +5711,15 @@ export async function issue() {
}
const platform = await browserBg.runtime.getPlatformInfo()
// Remove the bit asking the user
template = template.replace("* Operating system:\n", "")
template = template.replace("- Operating system:\n", "")
// Add this piece of information to the top of the template
template = `Operating system: ${platform.os}\n` + template
const info = await browserBg.runtime.getBrowserInfo()
template = template.replace("* Firefox version (Top right menu > Help > About Firefox):\n\n", "")
template = template.replace("- Firefox version (Top right menu > Help > About Firefox):\n\n", "")
template = `Firefox version: ${info.vendor} ${info.name} ${info.version}\n` + template
template = template.replace("* Tridactyl version (`:version`):\n\n", "")
template = template.replace("- Tridactyl version (`:version`):\n\n", "")
template = `Tridactyl version: ${TRI_VERSION}\n` + template
textarea.value = template