bug: change theme export to json to avoid accidental execution

This commit is contained in:
Alphons Joseph
2025-03-18 14:59:32 +08:00
parent ea46ab41ce
commit f4ae9098d8
+1 -1
View File
@@ -6,7 +6,7 @@ const saveThemeFile = (data: object, fileName: string) => {
const url = URL.createObjectURL(blob);
const a = document.createElement('a');
a.href = url;
a.download = `${fileName}.json.theme`;
a.download = `${fileName}.theme.json`;
document.body.appendChild(a);
a.click();
document.body.removeChild(a);