Added version to export settings filename

This commit is contained in:
ManeraKai 2023-05-25 13:51:07 +03:00
parent 0aaf49eef1
commit 822e624bb9
No known key found for this signature in database
GPG Key ID: 5ABC31FFD562E337
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ async function exportSettings() {
options.version = browser.runtime.getManifest().version
let resultString = JSON.stringify(options, null, " ")
exportSettingsElement.href = "data:application/json;base64," + btoa(resultString)
exportSettingsElement.download = "libredirect-settings.json"
exportSettingsElement.download = `libredirect-settings-v${options.version}.json`
return
}
exportSettings()