Skip to content

Commit

Permalink
minor refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
aldrinjenson committed Jan 27, 2024
1 parent 5f41522 commit d60ea6b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Modal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,6 @@ class CameraModal extends Modal {
isImage = false,
fileName = ""
) => {
// console.log("savig file...");

if (!fileName) {
const dateString = (new Date() + "")
.slice(4, 28)
Expand Down Expand Up @@ -149,7 +147,7 @@ class CameraModal extends Modal {
: `\n![[${filePath}]]\n`,
cursor
);
this.close(); // closing the modal
this.close();
};

switchCameraButton.onclick = async () => {
Expand Down

0 comments on commit d60ea6b

Please sign in to comment.