Skip to content

Commit

Permalink
solved issue with notification sound not working
Browse files Browse the repository at this point in the history
  • Loading branch information
rahul.jain committed Feb 22, 2024
1 parent dca7abe commit be2f25b
Show file tree
Hide file tree
Showing 5 changed files with 1,667 additions and 833 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
node_modules
node_modules
dist
6 changes: 3 additions & 3 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ const displayNotificationAndBeep = (title, message) => {

notification.show();

const beepPath = path.join(__dirname, 'media', 'bubble.wav');
sound.play(beepPath, 1.0); // Adjust volume if necessary
const beepPath = __dirname + '/../media/bubble.wav'
sound.play(beepPath, 1.0);
}

const createWindow = () => {
Expand Down Expand Up @@ -65,7 +65,7 @@ app.on('window-all-closed', function () {
});

const updateTimer = () => {
let minutes = 20;
let minutes = 2;
let seconds = 0;

const startTimer = () => {
Expand Down
Binary file removed media/background.jpg
Binary file not shown.
Loading

0 comments on commit be2f25b

Please sign in to comment.