Browse Source

include date in the filename (fix #664)

Gildas 4 years ago
parent
commit
ecf3eba2eb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      extension/core/bg/config.js

+ 1 - 1
extension/core/bg/config.js

@@ -448,7 +448,7 @@ async function exportConfig() {
 	const url = URL.createObjectURL(new Blob([JSON.stringify({ profiles: config.profiles, rules: config.rules, maxParallelWorkers: config.maxParallelWorkers }, null, 2)], { type: "text/json" }));
 	const downloadInfo = {
 		url,
-		filename: "singlefile-settings.json",
+		filename: `singlefile-settings-${(new Date()).toISOString().replace(/:/g, "_")}.json`,
 		saveAs: true
 	};
 	try {