Skip to content

Commit

Permalink
Added date and time to exported settings file https://codeberg.org/Li…
Browse files Browse the repository at this point in the history
  • Loading branch information
ManeraKai committed Dec 29, 2024
1 parent bfaec20 commit cb1b10a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/options_src/General/SettingsButtons.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand Down

0 comments on commit cb1b10a

Please sign in to comment.