Skip to content

Commit cb1b10a

Browse files
committed
Added date and time to exported settings file https://codeberg.org/LibRedirect/browser_extension/issues/152
1 parent bfaec20 commit cb1b10a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pages/options_src/General/SettingsButtons.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
const resultString = JSON.stringify(_options, null, " ")
3939
const anchor = document.createElement("a")
4040
anchor.href = "data:application/json;base64," + btoa(resultString)
41-
anchor.download = `libredirect-settings-v${_options.version}.json`
41+
anchor.download = `libredirect-settings-v${_options.version}-${(new Date().toISOString().replace(':','-').slice(0,-5))}.json`
4242
anchor.click()
4343
}
4444

0 commit comments

Comments
 (0)