Przeglądaj źródła

include date in the filename (fix #664)

Gildas 4 lat temu
rodzic
commit
ecf3eba2eb
1 zmienionych plików z 1 dodań i 1 usunięć
  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 {