fix(custom-widgets): reduce action menu file below architecture line limit
This commit is contained in:
3 files changed
+35
-50
No files matched your search
@@ -0,0 +1,9 @@
|
||||
export const downloadJson = (data: unknown, filename: string) => {
|
||||
const blob = new Blob([JSON.stringify(data, null, 2)], { type: "application/json" });
|
||||
const url = URL.createObjectURL(blob);
|
||||
const anchor = document.createElement("a");
|
||||
anchor.href = url;
|
||||
anchor.download = filename;
|
||||
anchor.click();
|
||||
URL.revokeObjectURL(url);
|
||||
};
|
||||
Reference in new issue
Block a user