Преглед на файлове

include date in the filename (fix #664)

Gildas преди 4 години
родител
ревизия
ecf3eba2eb
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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 {