Skip to content

Commit

Permalink
add schema to export
Browse files Browse the repository at this point in the history
  • Loading branch information
tuckner committed Dec 10, 2023
1 parent aac7378 commit e12628a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/utilis/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@ export const exportConfig = () => {
try {
const boardData = localStorage.getItem("boarddata");
if (boardData) {
const blob = new Blob([JSON.stringify([JSON.parse(boardData).board], null, 2)], { type: "application/json" });
const raw = JSON.parse(boardData).board
const config = {"schema": 1, "config": raw}
const acmexport = JSON.stringify(config, null, 2)
const blob = new Blob([acmexport], { type: "application/json" });
const url = URL.createObjectURL(blob);
const link = document.createElement("a");
link.href = url;
Expand Down

0 comments on commit e12628a

Please sign in to comment.