Added date and time to exported settings file https://codeberg.org/LibRedirect/browser_extension/issues/152
This commit is contained in:
parent
bfaec2065b
commit
cb1b10ada9
@ -38,7 +38,7 @@
|
||||
const resultString = JSON.stringify(_options, null, " ")
|
||||
const anchor = document.createElement("a")
|
||||
anchor.href = "data:application/json;base64," + btoa(resultString)
|
||||
anchor.download = `libredirect-settings-v${_options.version}.json`
|
||||
anchor.download = `libredirect-settings-v${_options.version}-${(new Date().toISOString().replace(':','-').slice(0,-5))}.json`
|
||||
anchor.click()
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user