diff --git a/src/components/OptionsButton.tsx b/src/components/OptionsButton.tsx
index 9049af8..8880a60 100644
--- a/src/components/OptionsButton.tsx
+++ b/src/components/OptionsButton.tsx
@@ -29,12 +29,18 @@ msi.jecsham.com`);
-
-
-
-
+
Save as .txt file
diff --git a/src/libs/html2canvas.ts b/src/libs/html2canvas.ts
index a9d5d22..2112511 100644
--- a/src/libs/html2canvas.ts
+++ b/src/libs/html2canvas.ts
@@ -1,6 +1,6 @@
import html2canvas from "html2canvas";
import { dialog, fs } from "@tauri-apps/api";
-var Buffer = require('buffer/').Buffer
+var Buffer = require("buffer/").Buffer;
const _decodeBase64Image = (dataString: string) => {
let matches = dataString.match(/^data:([A-Za-z-+\/]+);base64,(.+)$/);
diff --git a/src/libs/txt.ts b/src/libs/txt.ts
index 1ddb607..8d70bd7 100644
--- a/src/libs/txt.ts
+++ b/src/libs/txt.ts
@@ -15,9 +15,9 @@ const saveAsTxt = async () => {
let tableData = await _getSystemDataFromForage();
if (!tableData) return;
- tableData.forEach((e:any) => {
+ tableData.forEach((e: any) => {
text += e.title + "\n";
- e.content.forEach((c:any) => {
+ e.content.forEach((c: any) => {
text += c + "\n";
});
text += "\n";
@@ -33,7 +33,7 @@ const saveAsTxt = async () => {
],
});
if (!saveDir) throw "Unable to get path";
- fs.writeFile({path: saveDir, contents: text});
+ fs.writeFile({ path: saveDir, contents: text });
} catch (error) {
console.log(error);
}