Skip to content

Commit 2bd65a0

Browse files
committed
Fix: Change download file extension from .faf to .txt for easy viewing
- Changed file extension in generateFilename() from .faf to .txt - Changed blob type from text/yaml to text/plain - Users can now easily open and view downloaded files in any text editor - File content remains the same (branded FAF YAML format)
1 parent 0669702 commit 2bd65a0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/adapters/downloads.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export class DownloadsManager {
1414

1515
try {
1616
// Create blob URL
17-
const blob = new Blob([brandedContent], { type: 'text/yaml' });
17+
const blob = new Blob([brandedContent], { type: 'text/plain' });
1818
const url = URL.createObjectURL(blob);
1919

2020
// Trigger download via Chrome Downloads API
@@ -126,7 +126,7 @@ metadata:
126126
const timestamp = new Date().toISOString().split('T')[0];
127127
const score = fafData.score || 0;
128128

129-
return `${projectName}_${timestamp}_${score}percent.faf`;
129+
return `${projectName}_${timestamp}_${score}percent.txt`;
130130
}
131131

132132
/**

0 commit comments

Comments
 (0)