mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-06-06 03:34:40 +00:00
change theme file to .json
This commit is contained in:
@@ -6,7 +6,7 @@ const saveThemeFile = (data: object, fileName: string) => {
|
|||||||
const url = URL.createObjectURL(blob);
|
const url = URL.createObjectURL(blob);
|
||||||
const a = document.createElement('a');
|
const a = document.createElement('a');
|
||||||
a.href = url;
|
a.href = url;
|
||||||
a.download = `${fileName}.theme`;
|
a.download = `${fileName}.json`;
|
||||||
document.body.appendChild(a);
|
document.body.appendChild(a);
|
||||||
a.click();
|
a.click();
|
||||||
document.body.removeChild(a);
|
document.body.removeChild(a);
|
||||||
@@ -67,7 +67,7 @@ const shareTheme = async (themeID: string) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
console.log('Final data', data);
|
console.log('Final data', data);
|
||||||
|
|
||||||
saveThemeFile(data, themeData.name || 'Unnamed_Theme');
|
saveThemeFile(data, themeData.name || 'Unnamed_Theme');
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('Error sharing theme:', error);
|
console.error('Error sharing theme:', error);
|
||||||
|
|||||||
Reference in New Issue
Block a user