Skip to content

Commit

Permalink
add some extra fields for requests
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanmajh committed Apr 15, 2024
1 parent c8aabb1 commit e70ed83
Show file tree
Hide file tree
Showing 4 changed files with 646 additions and 605 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,6 @@ When linking css to an html file, use style.css as the only stylesheet. If you m
Use ```npm start``` to open the application (make sure you've installed all dependencies using ```npm install``` at least once). Once you make any changes, hit ```ctrl+r``` in the app to refresh the page. To restart the app, enter ```rs``` in the terminal. Opening the html file in a browser directly will prevent the JS from loading.

App Icon
<a href="https://www.flaticon.com/free-icons/repair" title="repair icons">Repair icons created by Ayub Irawan - Flaticon</a>
<a href="https://www.flaticon.com/free-icons/repair" title="repair icons">Repair icons created by Ayub Irawan - Flaticon</a>

https://firebase.google.com/docs/app-check/web/recaptcha-provider#web-modular-api
16 changes: 0 additions & 16 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,22 +30,6 @@ ipcMain.on('write-file', (event, emailData) => {
console.error(`Error writing file: ${err}`);
} else {
shell.openPath(pathToFile)
.then(() => {
sleep(2000).then(() => {
// Delete the file after opening
fs.unlink(pathToFile, (err) => {
if (err) {
console.error(`Error deleting file: ${err}`);
} else {
console.log('File deleted successfully');
}
});
},
)
.catch((err) => {
console.error(`Error opening file: ${err}`);
});
});
}
});
});
Expand Down
Loading

0 comments on commit e70ed83

Please sign in to comment.