Skip to content

Commit

Permalink
cleanup old code
Browse files Browse the repository at this point in the history
  • Loading branch information
coreycondardo committed Jul 10, 2024
1 parent 85513aa commit 08726a1
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions src/views/HomeIndex.vue
Original file line number Diff line number Diff line change
Expand Up @@ -44,22 +44,6 @@ const handleNodeNotFound = () => {
router.push({ name: 'node.not-found' });
};
// const handleSaveStore = () => {
// const nodesJson = JSON.parse(JSON.stringify(nodes.value));
// const nodesString = JSON.stringify(nodesJson);
// // create the downloadable file
// const blob = new Blob([nodesString], { type: 'application/json' });
// const url = URL.createObjectURL(blob);
// const link = document.createElement('a');
// link.href = url;
// link.download = 'solutionNavigatorSave.json'; // Name of the file to be downloaded
// document.body.appendChild(link); // Append the link to the body
// link.click(); // Programmatically click the link to trigger the download
// document.body.removeChild(link); // Remove the link from the body
// URL.revokeObjectURL(url); // Clean up the URL object
// };
const downloadNodesLink = computed(() => {
const jsonNodes = JSON.stringify(nodes.value);
const blob = new Blob([jsonNodes], { type: 'application/json' });
Expand Down

0 comments on commit 08726a1

Please sign in to comment.