Skip to content

Commit

Permalink
adding note on electron implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
lreading committed Feb 13, 2022
1 parent b18fe73 commit 941c647
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion td.vue/src/service/save.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/**
* Saves the file locally
* This automatically opens the save prompt in electron
* @param {Object} data
* @param {string} fileName
*/
const local = (data, fileName) => {
// TODO: Split into local browser and electron-specific saving
const contentType = 'application/json';
const jsonData = JSON.stringify(data, null, 2);
const blob = new Blob([jsonData], { type: contentType });
Expand Down

0 comments on commit 941c647

Please sign in to comment.