Skip to content
This repository has been archived by the owner on Nov 19, 2022. It is now read-only.

Commit

Permalink
fixed notification issue and removed bells
Browse files Browse the repository at this point in the history
  • Loading branch information
netharuM committed Jan 30, 2022
1 parent b6877fb commit 26efcd6
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 12 deletions.
12 changes: 1 addition & 11 deletions data/bells.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,3 @@
{
"bells": [
{
"name": "nothing",
"desc": "ultra",
"time": {
"hour": 14,
"minute": 55
},
"audioPath": "E:\\audio\\Scheming Weasel Faster (Kevin Macleod) - Vanoss Gaming Background Music (HD).mp3"
}
]
"bells": []
}
1 change: 1 addition & 0 deletions src/bell.js
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,7 @@ class bell {
`auto-bell : ${data.name}`,
{
body: `up coming alarm at ${this.formattedTime}`,
icon: path.resolve(__dirname, "../assets/icon.png"),
}
);
clearTimeout(this.bellNotificationTimeOut);
Expand Down
2 changes: 1 addition & 1 deletion src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
<div class="playBackControl">

<div class="topControll" id="topControll">
<div id="nameOfPlayBack" class="namePlay">disti didin</div>
<div id="nameOfPlayBack" class="namePlay">name not found</div>
<div class="playbackBtns">
<button class="playBackBtn controllerBtn" id="controlBell">
<i class="material-icons" id="play_pause_icon">pause</i>
Expand Down
4 changes: 4 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ if (require("electron-squirrel-startup")) {
app.quit();
}

if (process.platform === "win32") {
app.setAppUserModelId(app.name);
}

const createWindow = () => {
// Create the browser window.
const mainWindow = new BrowserWindow({
Expand Down
1 change: 1 addition & 0 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,5 @@ settingsHandler.onAudioBellOutChange = (e) => {

new Notification("auto-bell", {
body: "auto-bell is running",
icon: path.resolve(__dirname, "../assets/icon.png"),
});

0 comments on commit 26efcd6

Please sign in to comment.