소스 검색

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 {