Fix #3899: remove duplicate fields

This commit is contained in:
Oliver Blanthorn 2021-10-02 17:38:45 +02:00
parent ed7b6fb0cd
commit beb2ea3b25
No known key found for this signature in database
GPG key ID: 2BB8C36BB504BFF3

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